fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int sum=0,n=0;
  6. while(n<=100){
  7. n=n+1;
  8. if((n%3!=0)&&(n%5!=0)){
  9. if(n%10>=4){
  10. sum=sum+n;}}
  11. }
  12. printf("%d",sum);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
1693