#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;
}
if( scanf("lf%lf%lf",&test[i][0],&test[i][1],&test[i][2]))//这句格式错误,格式符最前少了 % , 修改如下:
if( scanf("%lf%lf%lf",&test[i][0],&test[i][1],&test[i][2]))