=if(A1>=3,0,if(A1>=2,100,if(A1>=1,400,"")))
答:如下即可满足要求:if(A1>=1 && A1<2)printf("400\n");if(A1>=2 && A1<3)printf("100\n");if(A1>=3)printf("0\n");