fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int x,n;
  6. x=3;
  7. n=0;
  8. do{
  9. x=2*x-1;
  10. n=n+1;
  11. }while(x<10000);
  12. printf("%d",x);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
16385