Question: Write a program to find n! (n factorial) when a user enters n using recursion. The definition of n! is as follows: 0! = 1,
Write a program to find n! (n factorial) when a user enters n using recursion. The definition of n! is as follows: 0! = 1, 1! = 1 , n! = n x (n-1)! As example 3! = 3 x 2 x 1 = 6, 4! = 4 x 3 x 2 x 1 = 24
in java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
