
Епимах
4 год назад
Составить программу нахождения n! факториала на Pascal
ОТВЕТЫ

Радислав
Oct 24, 2020
Program n1;
var
n, i: integer;
p: real;
begin
write('Введите n: ');
readln(n);
p := 1;
for i := 2 to n do
p := p * i;
writeln(n, '! = ', trunc(p));
end.
var
n, i: integer;
p: real;
begin
write('Введите n: ');
readln(n);
p := 1;
for i := 2 to n do
p := p * i;
writeln(n, '! = ', trunc(p));
end.
669
Смежные вопросы: