标签:
#include<stdio.h>
int main()
{
int a,b,c,d,e,f,g
printf(请输入今天的日期,年月日用逗号分开);
scanf(‘‘%d,%d,%d‘‘,&a,&b,&c);
printf(请输入你的生日,格式年-月-日);
scanf(‘‘%d%d%d‘‘,&d,&e,&f);
g=a–d;
printf(‘‘你今年%d岁了,你的生日是%d-%d-%d‘‘,g,d,e,f);
return 0;
}
标签:
原文地址:http://www.cnblogs.com/0000-beauty/p/5934674.html