fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. { int a=1,b=0;
  5. while(a<=100)
  6. { if((a%3>0)&&(a%10>=6))
  7. { b=b+a;
  8. }
  9. a=a+1;
  10. };
  11. printf("%d",b);
  12. return 0;
  13. }
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
1365