{ int s=0,k; for (k=7;k>=0;k--){ switch(k){ case 1:
答案:2 悬赏:40 手机版
解决时间 2021-03-18 05:12
提问者网友:却不属于对方
2021-03-17 05:27
#include main() { int s=0,k; for (k=7;k>=0;k--){ switch(k){ case 1: case 4: case 7: s++; break; case 2: case 3: case 6: break; case 0: case 5: s+=2; break; } } printf("s=%d\n",s); }