Question
Write a recursive procedure to compute the factorial of a number
Answer :
Word Count : 80
___ __________ _______ ____ ____ _______ ____ ________ __________.
_______ __________ ____ ______ _____ ______ ________ ____ __________ __________ __________ __________.
____ ______ _____ ________ ____.
_______ _____ _______ _______ ________ _______ _____ _______ ________ __________ _____ __________.
___ _____ _________ ________ _________ ___ _________.
_______ _________ ___ ______ _____ _______ ______ ________ ________ ___.
___.
Skip in 10
FUNCTION FACTORIAL (N: INTEGER): INTEGER
BEGIN
IF N <= 0 THEN
FACTORIAL := 1
ELSE
FACTORIAL := N * FACTORIAL(N - 1)
END;
______________________________________________________
_______ __________ ____ ______ _____ ______ ________ ____ __________ __________ __________ __________.
____ ______ _____ ________ ____.
_______ _____ _______ _______ ________ _______ _____ _______ ________ __________ _____ __________.
___ _____ _________ ________ _________ ___ _________.
_______ _________ ___ ______ _____ _______ ______ ________ ________ ___.
___.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.