Untitled

mail@pastecode.io avatar
unknown
c_cpp
21 days ago
276 B
0
Indexable
Never
using namespace std;
#include <iostream>

void foo(int m) {
	cout << m << endl;
}



int main()
{
	int n;
	//  4231   >>   1324      //
	cin >> n;
	int m = 0;
	while (n)
	{
		m = m * 10 + n % 10;
		n /= 10;
	}
	foo(m);
	
	
	                        
}
Leave a Comment