fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i=1,a=0;
  5. while(i<=100){
  6. if(i%5==0&&i%3==0){
  7. a=a+i;
  8. }
  9. i++;}
  10. printf("%d",a);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
315