fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. int a=0,n=0;
  6.  
  7. while(a<101)
  8. {
  9.  
  10. a=a+1;
  11.  
  12. if((a%3>0)&&(a%5>0)&&(a%10>=6))
  13.  
  14. n=n+a;
  15.  
  16. }
  17. printf("%d",n);
  18.  
  19.  
  20.  
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 5260KB
stdin
Standard input is empty
stdout
1365