Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (anonymous):

plz help..how to find factorial of 5!-4!+3!-2!+1! by using c# or c++ and also display the series as well.. its urgent kindly need help

OpenStudy (anonymous):

approach this problem by writing a factorial function first, then you can call a number to the function to be factored

OpenStudy (queelius):

As helpme indicated, write a factorial function first. factorial(n) = if n == 0 return 1 else return n * factorial(n-1) Now it's a simple matter. What is next? (Note: This is an efficient solution to the factorial problem; it is using tail recursion, when a simple loop would be possible. However, note that many modern compilers will recognize tail recursion and convert it into a simple loop automatically.)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!