?? i think i need a houseboat.txt
字號:
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
const double pi=3.1415;
double x,y,s;
int n;
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>x>>y;
s=0;
while(sqrt(x*x+y*y)>sqrt((s+50)*2/pi))s+=50;
cout<<"Property "<<i<<": This property will begin eroding in year "<<s/50+1<<"."<<endl;
}
cout<<"END OF OUTPUT."<<endl;
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -