main(){floata,b,c=0;scanf(“%f%f”,a,b);if(b=0)printf(“b=0\n”);elsec=a/b;printf(“c=%f\n”,c);}
main(){floata,b,c=0;scanf(“%f%f”,a,b);if(b=0)printf(“b=0\n”);elsec=a/b;printf(“c=%f\n”,c);}
【正确答案】:错误:改正:
【题目解析】:错误:if(b=0)printf(“b=0\n”);改正:if(b==0)printf(“b=0\n”);
Top