Untitled

Anonymous
c_cpp
03/09/2024 5:04 PM
292 B
14
Indexable
#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;
}
Editor is loading...
Leave a Comment