-1
已采纳
0
0
0
double s=0.1;
cin>>n;
while(s<n)
{
i++;
s*=2;
}
cout<<i;
用while循环。
注:n为桌面板,s为厚度(要先赋值为0.1),i为计数器(要清零) 注:初值为0.1
0
0
