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;
______________________________________________________
A
___ ________ _____ ______ ________ ___ ___ _______.
_____ __________ ______ __________ ______.
_____ _________ ___ ____ _____ ______ _________.
__________ _____ _________ _____ ____ _______ _____ _________.
____ ______ ________ __________ ___ _____ _________ ________ _________.
____ ___ _________ __________ ____ _____ _____ ______ ______ _________ _______.
_______.
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.