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