求助
查看原帖
求助
1013734
CHYUhnxe楼主2024/6/22 13:31
#include <iostream>
using namespace std;
int main(){
    double v,h,s,p=3.14;
    int i=1;
    cin>>h>>v;
    s= p*v*v*h;
    while(1){
        if(s*i>=200000) {cout<<i;break;}
        i++;
    }
    return 0;
}

为什么错了,求助

2024/6/22 13:31
加载中...