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 |
急~为什么总是出现PE 应该怎么改 谢谢了#include<iostream> #include<cmath> using namespace std; #define pi 3.14 int main() { int counter; float x,y; double square; double years; cin>>counter; for(int i=0;i<counter;i++) { cin>>x>>y; square=pi*(x*x+y*y); years=square/100; cout<<"Property"<<i+1<<":"<<"This property will begin eroding in year" <<(int)++years<<"."<<endl; } cout<<"END OF OUTPUT."<<endl; return 0; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator