请问我哪里错了?
查看原帖
请问我哪里错了?
1145922
Linshixiang楼主2024/6/9 13:34
#include<bits/stdc++.h>
using namespace std;
double pi;
int r,h,d=0,m=0;
int main(){
	cin>>r>>h;
	m=pi*(r*r)*h;
	while(m<20){
		m=m+pi*(r*r)*h;
		d++;
	}
	cout<<d;
	return 0;
}
2024/6/9 13:34
加载中...