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