#include <iostream> using namespace std; int main() { double height = 100; int count = 0; while (height / 2 >= 0.5) { height /= 2; count++; } count++; cout << count << endl; return 0; } /************************************************************** Problem: 1062 User: wengsihan Language: C++ Result: Accepted Time:3 ms Memory:2072 kb ****************************************************************/