#include<stdio.h>
int main()
{
float score,aver,s=0;
int i,n=0;
for(i=1;i<5;i++)
{
printf("please enter score:");
scanf("%f",&score);
if(score<60)
{
printf("%7.2f\n",score);
continue;
}
s=s+score;
n=n+1;
}
aver=s/n;
printf("%d,%7.2f\n",n,aver);
return 0;
}
please enter score:89
please enter score:56
56.00
please enter score:76
please enter score:58
58.00
2, 82.50
Press any key to continue;
用continue语句。