Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a := new Stack<integer>;
- b: integer;
- c: int64 := 1;
- begin
- write('Введите число: ');
- readln(b);
- for var i := 1 to b do
- a.Push(i);
- for var i := 1 to b do
- c *= a.Pop();
- writeln(c);
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement