看看这个小程序
我是一个c程小菜鸟啊 喜欢c程但暂时技术不行,谢谢大家指教。现在我把这个小程序挂上来,你们帮我纠纠错,谢谢啦#include<stdio.h>
#include<conio.h>
main()
{
int a,b;
float y;
printf("请输入a,b:");
scanf("%d,%d",&a,&b);
y=a-b;
if(y<0)
y=-y;
else
y=y;
printf("y=%d",y);
getch();
}
2011-11-25 12:56
2011-11-25 12:59
2011-11-25 13:09
2011-11-25 13:14
2011-11-25 13:22
2011-11-25 13:30
2011-11-25 13:30
2011-11-25 13:31
2011-11-25 13:37
2011-11-25 13:43