Untitled

mail@pastecode.io avatar
unknown
c_cpp
a month ago
218 B
0
Indexable
Never
#include <iostream>
using namespace std;
void perevN(int N)
{
	if (N < 10) 
	{
		cout << N;
		return;
	}
	cout << N % 10;
	perevN(N / 10);
}
int main() 
{
	int N;
	cin >> N;
	perevN(N);
	return 0;
}
Leave a Comment