韩信点兵题,无法输出
#include<stdio.h>main(){
int a, b, c;
int P = 0, kase = 0;
while((scanf("%d%d%d", &a, &b, &c) == 1) && a != EOF){
P = a*70 + b*21 + c*15;
for(;P > 100;P = P - 105);
if((P >= 10) && (P <= 100))
printf("Case %d: %d\n", ++kase, P);
else
printf("Case %d: No.answer", ++kase);
}
return 0;
}