do-while语法是
do
{
执行语句
{
while(表达式)
cpp
#include<stdio.h>
int main()
{
int iNumber=1;
int iSum=0;
do
{
iSum=iSum+iNumber;
iNumber++;
}
while(iNumber<=100);
printf("1`100的和是:%d\n",iSum);
return 0;
}