请帮忙看一下这程序有什么问题
编写程序,按人机对话形式输入两个人的年龄后计算他们的年龄差。/* Note:Your choice is C IDE */
#include "stdio.h"
void main()
{ int a,b,c;
printf("How old you:");
a=scanf();
printf("\nHow old you:");
b=scanf();
c=a-b;
printf("c=%d",c);
}
谢谢指出错误
2010-10-18 18:17
2010-10-18 18:49
2010-10-18 19:30
2010-10-19 07:04
2010-10-19 09:02
2010-10-19 09:55
2010-10-19 11:20