
Patrick B. answered 06/25/19
Math and computer tutor/teacher
Program Factorials (input,output);
function factorial( N : integer) : integer;
begin
if N=1 then
factorial:=1
else
factorial := n * factorial(n-1);
end; {factorial}
Begin
writeln('2! + 3! + 4! = ',factorial(2)+factorial(3)+factorial(4));
end.
=============================================================
the result is 32