首页 > IT职业 > > switch拿错了?
#include<stdio.h>int main(){ float x; printf("输入成绩x:"); scanf("%f",&x); x=x/10; switch(x) { case 9||10:printf("优");break; case 8:printf("良");break; }}来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27/viewspace-3130940/ ,如需转载,请注明出处,否则将追究法律责任。