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