题解 | #出生日期输入输出#
出生日期输入输出
https://www.nowcoder.com/practice/4a4a9dd1edb6453ba4a0432319200743
#include <stdio.h> int main() { int year=0; int month=0; int date=0; scanf("%4d%2d%2d",&year,&month,&date); printf("year=%4d\n",year); printf("month=%02d\n",month); printf("date=%02d\n",date); return 0; }
c语言刷题 文章被收录于专栏
c语言刷题题目