void main(){int score = 80; //考试成绩if ( score > 90 ) {printf("优秀\n");} else if (score > 80 ) {printf("良好\n");} else if (score >= 60 ) {printf("中等\n");} else {printf("差\n");}}
查看答案
void main(){for(int i=1;i<=10;i++){if(i%2==0||i%3==0){break;//自己思考如果换成continue;答案又是什么?}printf("%d:",i);}最终输出结果为( )
int main( ){ int i=5,j=5;printf("%d,%d\n",++i,j--);return 0;}最终输出结果为
#include "stdio.h"void main(){int s1,s2;s1=20;s2=10;printf("s1>s2的运算结果是:%d\t",s1>s2);printf("s1+s2的运算结果是:%d\n",s1+s2);}
#include “stdio.h”void main(){for(int i=1;i<=10;i++){if(i%3==0)printf(“%d\n”,i);}}