| ||||||||||
| 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 | |||||||||
help me .where is wrong?#include<iostream>
#include<math.h>
using namespace std;
int main()
{
float Vs,R,C; int n,i,j;
double w,t;
double V1,V2,VR;
cin>>Vs>>R>>C>>n;
for(i=0;i<n;i++)
{
cin>>w;
VR=Vs/sqrt(R*R+1/(w*w*C*C))*R;
cout<<VR;
cout<<endl;
}
return 1;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator