#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;
} |
|