Untitled

Anonymous
c_cpp
02/11/2024 9:23 AM
252 B
10
Indexable
#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);
} 
Editor is loading...
Leave a Comment