Question:

Write a recursive and a non recursive function that returns the factorial of n (n!). in c programmin

by Guest28062726  |  6 years, 6 month(s) ago

0 LIKES UnLike

Write a recursive and a non recursive function that returns the factorial of n (n!). Use both functions in a program that reads the value n and prints the result n!. (30)
For a nonnegative integer n, the factorial of n is defined by
0!=1, n!=n*(n-1)*… 3*2*1 for n>0 or equivalently,
0!=1, n!=n*((n-1)!) for n>0 (recursive form)

 Tags: factorial, function, programmin, recursive, RETURNS, write

   Report
SIMILAR QUESTIONS
CAN YOU ANSWER?

Question Stats

Latest activity: 6 years, 6 month(s) ago.
This question has been viewed 300 times and has 0 answers.

1 User is following this question

sweetangeldoo

BECOME A GUIDE

Share your knowledge and help people by answering questions.