请问这个东西有什么错的吗?
/* Note:Your choice is C IDE */#include "stdio.h"
void main()
{
int a,b,c,sum,average,product,smallest,largest;
printf("please input three numbers:\n");
scanf("%d%d%d",&a,&b,&c);//*输入三个整数*//
printf("Input three different integers:%3d%3d%3d",a,b,c);
sum=(a+b+c);//*求和*//
average=(a+b+c)/3;//*求平均值*//
product=a*b*c;//*求三个数的乘积*//
if(a>b&&a>c)
{largest=a;}
if(b>a&&b>c)
{largest=b;}
if(c>a&&c>b)
{largest=c;}//*判断出最大值*//
if(a<b&&a<c)
{smallest=a;}
if(b<a&&b<c)
{smallest=b;}
if(c<a&&c<b)
{smallest=c;}//*判断出最小值*//
printf("\n");
printf("Sum is %d\n",sum);
printf("Average is %d\n",average);
printf("Product is %d\n",product);
printf("Smallest is %d\n",smallest);
printf("Largest is %d\n",largest);
}
为什么在程序实验系统2014上可以运行,但到了C-free5.0上就出现错误了呢?新手不懂,是软件上的限制吗?