1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-11-30 09:16:20 +00:00
202401-programming-assignments/【实践课外】1.顺序结构/7-4 21-大鸟转转转实验室.c

17 lines
231 B
C
Raw Normal View History

2024-10-16 11:31:55 +00:00
#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;
}