1 #include<stdio.h> 2 int main() 3 { 4 int i=1,j=1,sum=0,sum1=0; 5 while(3*i<100) 6 { 7 sum+=3*i; 8 i++; 9 } 10 while(j<=100) 11 { 12 sum1+=j; 13 j++; 14 } 15 printf("%d\n",sum1-sum); 16 return 0; 17 }