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