输入身份证号,输出出生日期
课本例题
#include<stdio.h> int main() { int year, month, day; printf("请输入身份证号码:\n"); scanf_s("%*6d%4d%2d%2d%*d", &year, &month, &day); printf("%4d-%02d-%02d", year, month, day); return 0; }
本文来自博客园,作者:木子欢儿,转载请注明原文链接:https://www.cnblogs.com/HGNET/p/11819921.html