Untitled

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

void vool(int n) {
	int m = 0;
	while (n) {
		m = m * 10 + n % 10;
		n /= 10;
	}
	cout << m;
	return n;
}

int main()
{
	int n;
	cin >> n;
	vool(n);
}
Leave a Comment