|
|
back to boardwhere is the mistake?help! Posted by Amy 29 Jul 2003 15:14 const g=10.00; var v,a:longint; k,b,ans:extended; begin readln(v,a,k); b:=2*sin(a/180*pi)*cos(a/180*pi)/g; ans:=b*v*v/(1-1/k); writeln(ans:0:2); end. Re: where is the mistake?help! Posted by Vovka 21 Oct 2004 16:27 Use 3.1415926535 instead of pi Re: where is the mistake?help! const g=10.00; var v,a:longint; k,b,ans:extended; begin readln(v,a,k); b:=2*sin(a/180*pi)*cos(a/180*pi)/g; ans:=b*v*v/(1-1/k); =>>(1-1) What does it mean? writeln(ans:0:2); end. Re: where is the mistake?help! Sorry!!! Now I understood!!! It´s 1 - (1/k) and no (1-1)/k |
|
|