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