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