题解 | #出生日期输入输出# 想复杂了
出生日期输入输出
https://www.nowcoder.com/practice/4a4a9dd1edb6453ba4a0432319200743
#include <stdio.h> int main() { int a, b; int y, m, d; scanf("%d", &a); y = a / 10000; m = a % 10000; m = m / 100; d = a % 100; printf("year=%d\nmonth=%02d\ndate=%02d", y, m, d); return 0; }