铁子们求解,急解一下子

img


#include <iostream>
using namespace std;
int main(){
    float height = 100;
    int times = 0;
    while(height >= 0.0001){
        times ++;
        height /= 2;
    }
    printf("%d",times);
}

times=times+1;放在while循环里,记录弹起的次数