用C语言打印一句话“How old are you?”然后从键盘读入一个整数, 例子 scanf("%d",&age)根据读入的年龄,

2024-12-01 03:14:26
推荐回答(3个)
回答1:

int year;
year=2011-age;
printf(""You were born in %d\n",year);

回答2:

#include
int main()
{
int i;
printf("how old are you:\n");
scanf("%d",&i);
printf("You were born in %d\n",2011-i);
}

回答3:

哥们,你也忒懒了吧!这都弄到百度来问