mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-11-23 21:58:41 +00:00
17 lines
231 B
C
17 lines
231 B
C
#include <stdio.h>
|
|
|
|
int main() {
|
|
int n;
|
|
|
|
scanf("%d", &n);
|
|
|
|
int a = n % 10;
|
|
int b = n / 10 % 10;
|
|
int c = n / 100 % 10;
|
|
int d = n / 1000;
|
|
|
|
printf("%d\n", a * 1000 + b * 100 + c * 10 + d);
|
|
|
|
return 0;
|
|
}
|