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