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