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-3 日期格式化.c

12 lines
148 B
C
Raw Normal View History

2024-10-16 03:19:34 +00:00
#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;
}