1) uses crt; var i,k:integer; n:real; begin randomize; read(k); for i:=1 to k do begin n:=random; write(n:0:2,' '); end; end. 2) uses crt; var i,k,n,a:integer; begin randomize; read(k,a); for i:=1 to k do begin n:=random(0,a); write(n,' '); end; end.
uses crt;
var i,k:integer;
n:real;
begin
randomize;
read(k);
for i:=1 to k do
begin
n:=random;
write(n:0:2,' ');
end;
end.
2)
uses crt;
var i,k,n,a:integer;
begin
randomize;
read(k,a);
for i:=1 to k do
begin
n:=random(0,a);
write(n,' ');
end;
end.