fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int i,sum=0;
  6. for(i=10;i<100;i++){
  7. if(i%10>=5){
  8. sum+=i;
  9. printf("%d,\n",sum);
  10. }
  11. }
  12. printf("\n");
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
15,
31,
48,
66,
85,
110,
136,
163,
191,
220,
255,
291,
328,
366,
405,
450,
496,
543,
591,
640,
695,
751,
808,
866,
925,
990,
1056,
1123,
1191,
1260,
1335,
1411,
1488,
1566,
1645,
1730,
1816,
1903,
1991,
2080,
2175,
2271,
2368,
2466,
2565,