Перевести с турбо паскаля в паскаль абс
program z1;
uses crt;
type
TTmas=array[1..1] of real;
Tmas=^TTmas;
var
a:Tmas;
n,i,j:integer;
f:real;
begin
clrscr;
write('Размер массива n=');
readln (n);
getmem(a,sizeof(TTmas)*n);
writeln ('Исходный массив:');
f:=1;
for i:=1 to n do
begin
f:=f*i;
a^[i]:=1/(f+1);
writeln(a^[i]:0:10);
end;
freemem(a,sizeof(TTmas)*n);
readln
end.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.