Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program factorial;
- var
- i:integer;
- result:longInt;
- input:integer;
- begin
- result := 1;
- write('Введите число: ');
- readln(input);
- for i:=1 to input do begin
- result := result * i;
- end;
- writeln(input, '! = ', result);
- end.
Advertisement
Add Comment
Please, Sign In to add comment