Untitled
Anonymous
c_cpp
02/11/2024 9:23 AM
368 B
16
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