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