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