Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

各位师兄能帮一下我这新手吗~~谢谢~~1005~总是presentation error

Posted by wuyang1988 at 2007-05-20 03:01:35
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator