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