Cod sursa(job #628058)
| Utilizator | Data | 31 octombrie 2011 14:52:46 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.2 kb |
#include <iostream.h>
void main()
{
unsigned int n;
cin>>n;
while(n>=10)
{
n=(n%100)/10+n/10;
}cout<<n<<endl;
}