|
|
вернуться в форумОбщий форумHere's my program,the system always reports "Crash (FLT_INVALID_OPERATION)",why??? var a,b,r,area,x:real; begin readln(a,r); a:=a/2; area:=sqrt(sqr(r)-sqr(a))*a*4; x:=pi/2-2*arctan(sqrt(sqr(r)-sqr(a))/a); area:=area+x/(pi*2)*pi*r*r*4; writeln(area:0:3); end. Re: Here's my program,the system always reports > area:=sqrt(sqr(r)-sqr(a))*a*4; Try this input: 100 1 I've noted this serious mistake,thanks. > > area:=sqrt(sqr(r)-sqr(a))*a*4; > > Try this input: > 100 1 > |
|
|