1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-11-27 14:36:19 +00:00
202401-programming-assignments/【实践课内】1.顺序结构/7-3 日期格式化.c

12 lines
148 B
C

#include <stdio.h>
int main() {
int y, m, d;
scanf("%2d-%2d-%4d", &m, &d, &y);
printf("%04d-%02d-%02d\n", y, m, d);
return 0;
}