Untitled

mail@pastecode.io avatar
unknown
c_cpp
11 days ago
188 B
0
Indexable
Never
#include <iostream>

using namespace std;

void div2(int x) {
	while (x > 0) {
		int d = x % 10;
		x /= 10;
		cout << d;
	}
}

int main()
{
	int x;
	cin >> x;
	div2(x);
} 
Leave a Comment