| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
各位师兄能帮一下我这新手吗~~谢谢~~1005~总是presentation error#include<iostream>
using namespace std;
void main()
{int i,t,n;
float x,y,area;
cin>>n;
for(i=1;i<=n;i++)
{cin>>x>>y;area=3.14*(x*x+y*y)/2;t=(int)(area/50);
cout<<"Property "<<i<<": This property will begin eroding in year "<<t+1<<" ."<<endl;
}
cout<<"END OF OUTPUT."<<endl;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator