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