Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function facto (n:Longint): Longint;
- Var
- x,i: longint;
- Begin
- //max value of n=12
- x := 1;
- For i:=1 To n Do
- begin
- x := x*i;
- end;
- facto := x;
- End;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement