Untitled
unknown
c_cpp
2 years ago
276 B
4
Indexable
using namespace std;
#include <iostream>
void foo(int m) {
cout << m << endl;
}
int main()
{
int n;
// 4231 >> 1324 //
cin >> n;
int m = 0;
while (n)
{
m = m * 10 + n % 10;
n /= 10;
}
foo(m);
}Editor is loading...
Leave a Comment