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