#include <stdio.h> int main() { int year = 0; int month = 0; int date = 0; //输入 scanf("%4d%2d%2d", &year, &month, &date); //输出 printf("year=%d\nmonth=%02d\ndate=%02d", year, month, date); return 0; }
#include <stdio.h> int main() { int year = 0; int month = 0; int date = 0; //输入 scanf("%4d%2d%2d", &year, &month, &date); //输出 printf("year=%d\nmonth=%02d\ndate=%02d", year, month, date); return 0; }