Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Fakultet(Val : in Natural) return Positive is
- I : Integer;
- begin
- if Val = 0 then
- return 1;
- elsif Val >= 1 then
- return Val * Fakultet(Val - 1);
- end if;
- end Fakultet;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement