mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-12-16 15:44:39 +00:00
19 lines
204 B
C
19 lines
204 B
C
#include <stdio.h>
|
|
|
|
int x;
|
|
|
|
int main() {
|
|
scanf("%d", &x);
|
|
|
|
int res = 0;
|
|
|
|
while (x) {
|
|
res = (res * 10) + (x % 10);
|
|
x /= 10;
|
|
}
|
|
|
|
printf("%d\n", res);
|
|
|
|
return 0;
|
|
}
|