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