fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int i,sum=0;
  5. for(i=1;i<=100;i++)
  6. if(i%2==0)
  7. sum+=i;
  8. printf("sum=%1d\n",sum);
  9. return 0;
  10. }
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
sum=2550