C-study/04-1/1/1.c
2021-11-17 17:19:39 +08:00

15 lines
127 B
C

#include<stdio.h>
int main(){
int sum=0,a=0;
do{
sum+=a;
a++;
}while(a<=1000);
printf("sum=%d",sum);
return 0;
}