Untitled
unknown
c_cpp
2 years ago
218 B
7
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