Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function r=fact(n)
- r = 1;
- if n == 0
- return
- end
- for i=2:n
- r = r * i;
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement