最终的运行结果显示 i=4 n=5 该条件成i<n+1 也不行
代码如下
#include<stdio.h>
int main()
{ int i,n
int count=0;
scanf("%d", &n);
double test[10][3];
for(i = 0; i <n; i++)
{ if( scanf("lf%lf%lf",&test[i][0],&test[i][1],&test[i][2]))
count++;
if((test[i][0]+test[i][1])>test[i][2])
{
if(count<n)
printf("Case #%d: true\n",i+1);
else
printf("Case #%d: true",i+1);
}
else
{ if(count<n)
printf("Case #%d: false\n",i+1);
else
printf("Case #%d: false",i+1);
}
}
return 0;
}