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