题解 | #出生日期输入输出#
出生日期输入输出
https://www.nowcoder.com/practice/4a4a9dd1edb6453ba4a0432319200743
#include <stdio.h> int main() { int a,b,c; scanf("%4d%2d%2d",&a,&b,&c); printf("year=%d\n",a); printf("month=%02d\n",b); printf("date=%02d\n",c); return 0; }