题目链接: 酷丁编程:6229,3683
6229,3683
就是循环只有h>=0 就h-=x 然后cnt++ 最后输出cnt 求采纳
用while循环,判断条件是h>=0,h/=x,cnt++,输出cnt