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