Untitled
unknown
plain_text
2 years ago
222 B
7
Indexable
#include <iostream>
#include <cmath>
using namespace std;
int ime(int x)
{
int y = 0;
while (x) {
y = y * 10 + x % 10;
x /= 10;
}
return y;
}
int main()
{
int x;
cin >> x;
cout << ime(x);
}
Editor is loading...
Leave a Comment