| ||||||||||
| 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 | |||||||||
我这哪出错了?题目id1001#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator