救救孩子吧,救救孩子吧
c语言吧
全部回复
仅看楼主
level 2
int main()
{
int c = 5, no = 10;
do {
no /= c;
} while(c--);
printf ("%d\n", no);
return 0;
}
为什么while的判断语句还能用c--啊[疑问]
2020年10月31日 07点10分 1
level 2
#include <stdio.h>
int main()
{
int c = 5, no = 10;
do {
if (c == 0)
continue;
no /= c;
printf("%d,%d\n", no,c);
} while (c--);
return 0;
}
这个continue为什么能直接让循环结束啊[疑问]
2020年10月31日 07点10分 2
level 2
救救孩子[狂汗]
2020年10月31日 07点10分 3
level 2
救救孩子吧[乖]
2020年10月31日 07点10分 6
1