Главная » 2017 » Октябрь » 30 » 3_32
09:21
3_32

#include <iostream>
using namespace std;
int main()
{
    setlocale(LC_ALL,"rus_rus.1251");
    int a,b,c=0;
    cin>>a;
    while (a>0)
    {
        b=a%10;
        c=c*10+b;
        a=a/10;
    }
    cout<<c<<endl;
    system("pause");
    return 0;
}

Просмотров: 327 | Добавил: denjes | Рейтинг: 0.0/0
Всего комментариев: 0
avatar