var
x1,x2:real;
const
seed=100;
begin
randomize;
x1:=random( seed ) * random ( seed ) / ( random( seed ) + 1 );
x2:=random( seed ) * random ( seed ) / ( random( seed ) + 1 );
writeln( 'Переменная x1 = ', x1:0:2, #13#10, 'Переменная x2 = ', x2:0:2 );
readln;
end.
function procent(p:real):real;
begin
procent:=p/100;
end.
program procent;
uses crt;
var n:integer;
function procent (n:real):real;
begin
procent:=n/100;
end;
BEGIN
clrscr;
writeln ('Введите число');
--------- ( не знаю что ещё нужно)
readln;
END.
program procent;
uses crt;
function Procent(n: Real): Real;
begin
Procent := n / 100;
end;
var n: Integer;
begin
ClrScr;
WriteLn('Введите число');
ReadLn(n);
WriteLn('Процент от числа ', n, ' равен ', Procent(n):0:2);
ReadLn;
end.