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