Untitled
unknown
c_cpp
2 years ago
242 B
7
Indexable
#include <iostream>
#include <cmath>
using namespace std;
void ch(int a)
{
int c = 0;
while (a != 0)
{
int b = a % 10;
c = c * 10 + b;
a /= 10;
}
cout << c;
}
int main()
{
int a;
cin >> a;
ch(a);
return 0;
}Editor is loading...
Leave a Comment