#include <stdio.h> int main() {int a=3;int n=0;while(a<=10000){a=2*a-1;n=n+1;}printf("%d",n); return 0;}
Standard input is empty
13
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!