#include
int main(){
int sum1 = 0;
int sum2 = 0;
int sum3 = 0;
for(int i = 1;i<=100;i++){
sum1+=i;
}
int j = 1;
while (j<=100){
sum2+=j;
j++;
}
int m = 1;
do{
sum3+=m;
m++;
}while (m<=100);
printf("for循环结果:%d,while循环结果:%d,do while循环结果:%d\n",sum1,sum2,sum3);
return 0;
}