2、h>voidmain(){intscore;printf("Enteryourscore:");scanf("%d",___);/*$BLANK1$*/printf("gradeis:");switch(___)/*$BLANK2$*/{case10:case9:printf("A");break;case8:printf("B");break;case7:printf("C");break;case6:printf("D");break;___:printf("E");/*$BLANK3$*/}}$BLANK1$:
3、&score$BLANK2$:score/10$BLANK3$:default#include#includevoidPRINT(doubles){FILE*out;printf("s=%.2f",s);if((out=fopen("C:\24000101\RESULT.DAT","w+"))!=NULL)fprintf(out,"s=%.2f",s);fclose(out);}voidmain(){doubles=0;inti;for(i=300;i<=2013;i++)if(i%9==0
4、
5、
6、i%13==0)s=s+sqrt(i);PRINT(s);}模拟02#include17voidmain(){inta;scanf("%d",a);/*$ERROR1$*/if(a<0
7、
8、a>100)printf("DataError!");else{elseif(a>=90)printf("A");/*$ERROR2$*/elseif(a>=80)printf("B");elseif(a>=70)printf("C");elseif(a>=60)printf("D");printf("E");
9、/*$ERROR3$*/}}$ERROR1$:scanf("%d",&a);$ERROR2$:if(a>=90)printf("A");(去掉开始的else)$ERROR3$:elseprintf("E");(行首添加else)#includevoidmain(){longs,t;printf("Pleaseenters:");scanf("%ld",&s);t=s%10;s/=10;while(____)/*$BLANK1$*/{t=____+s%10;/*$BLANK2$*/s/=10;}printf(
10、"Theresultis:____",t);/*$BLANK3$*/}$BLANK1$:s>0$BLANK2$:t*10$BLANK3$:%ld#includevoidPRINT(inta,intb,intc){FILE*out;printf("big=%d,mid=%d,small=%d",a,b,c);if((out=fopen("C:\24000102\RESULT.DAT","w+"))!=NULL)fprintf(out,"big=%dp,mid=%dp,small=%dp",a,b,c);fcl
11、ose(out);}voidmain(){inta,b,c;for(a=1;a<25;a++)for(b=1;b<33;b++)for(c=5;c<100;c=c+5)if(a+b+c==100&&4*a+3*b+c/5==100)PRINT(a,b,c);}模拟03#includevoidmain(){17inti,j;intn;scanf("%d",n);/*$ERROR1$*/for(i=1;i<=n;i++){for(j=1;j<=n-i;j++)printf("");j=0;/*$ERROR2$*/while
12、(j<=i){printf("%-2d",i);j++;}print("")/*$ERROR3$*/}}$ERROR1$:scanf("%d",&n);$ERROR2$:j=1;$ERROR3$:pri