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. while(a<=100){
  8. if (a%3!=0&&a%5!=0){
  9. int b=a%10;
  10. if(b>=4){
  11. sum=sum+a;
  12. }
  13. }
  14. a=a+1;
  15. }printf("%d\n",sum);
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
1693