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