Untitled
unknown
plain_text
3 years ago
238 B
9
Indexable
#include <iostream>
using namespace std;
int perevorot(int a,int b,int c)
{
while (a > 0) {
b = a % 10;
c = c * 10 + b;
a /= 10;
}
}
int main()
{
int a, b = 0,c=0;
cin >> a;
cout << perevorot(a, b, c);
}
Editor is loading...