fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a=0,b=0;
  5.  
  6. while(a<=99){
  7. a=a+1;
  8. b=b+a;
  9. if((a%3==0)||(a%5==0)){
  10.  
  11. b=b-a;} }
  12.  
  13. printf("%d", b);
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
2632