Calculate the factorial of a given number n (n> 0) () - that is, the product of numbers from 1 to n.
This is similar, but it does not work for me ...
Program my; var i, s: integer; f: longint; begin s := 1; for i := 1 to 20 do f := f*i; writeln('произведение от 1 до 20 ',f); readln; end.