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