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

我这哪出错了?题目id1001

Posted by 178183265 at 2008-10-23 13:30:59
#include <iostream>
using namespace std;
main()
{   float R;int n,l=1;  double t=1;
    while(cin>>R>>n)
	{
		if(R>=99.999||R<=0.0||n<0||n>25)
		cout<<"the wrong input"<<endl;
	else
      while(l<=n)
	  {
		  t=t*R;
		  l++;
	  }
	  cout<<t<<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