|
|
вернуться в форумPascal, why is it a wrong code? program zad; var a,n,i:longint; b:array[1..1000] of real; begin n:=0; while not eof do begin read(a); n:=n+1; b[n]:=sqrt(a); end; for i:=n downto 1 do writeln(b[i]:0:4); end. Re: Pascal, why is it a wrong code? nvrm, fixed it. Re: Pascal, why is it a wrong code? As I think, u should use dynamic array. |
|
|