1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-12-16 15:44:39 +00:00
202401-programming-assignments/【实践课外】1.顺序结构/7-4 21-大鸟转转转实验室.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;
}