Untitled

mail@pastecode.io avatar
unknown
plain_text
8 months ago
222 B
1
Indexable
Never
#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);
}
Leave a Comment