// Computing nth power of 2 power = 1; count = 0; for( ; ; ) { if( count == n ) break; power *= 2; count++; }