mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-11-27 08:26:20 +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;
|
|
}
|