15 lines
221 B
C++
15 lines
221 B
C++
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int n;
|
|
cin >> n;
|
|
while (n) {
|
|
int a = n % 10;
|
|
n /= 10;
|
|
//输出最后一位
|
|
cout << a;
|
|
}
|
|
return 0;
|
|
} |