黑马程序员技术交流社区
标题:
switch
[打印本页]
作者:
马志华
时间:
2014-12-11 23:54
标题:
switch
#include <stdio.h>
/*
if(条件)
{
}
while(条件)
{
}
*/
int main()
{
int count = 0;
/*while (count<50) {
++count;
if (count % 10 != 0)
printf("做第%d次仰卧起坐\n",count);
}*/
/*while (count<50) {
++count;
if (count % 10 == 0)
{
continue;
}
printf("做第%d次仰卧起坐\n",count);
}
*/
while (count<50) {
++count;
printf("做第%d次俯卧撑\n",count);
if (count == 20) {
break;
}
}
return 0;
}
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2