Write a C++ program in which using loop and print the Factorial of any number n is represented by n! given by user.
Answers
Answered by
1
Answer:
Factorial Program in C++: Factorial of n is the product of all positive descending integers. Factorial of n is denoted by n!. For example:
4! = 4*3*2*1 = 24
6! = 6*5*4*3*2*1 = 720
Here, 4! is pronounced as "4 factorial", it is also called "4 bang" or "4 shriek".
The factorial is normally used in Combinations and Permutations (mathematics).
There are many ways to write the factorial program in C++ language. Let's see the 2 ways to write the factorial program.
Factorial Program using loop
Factorial Program using recursion
Explanation:
Mark me as a brainlist..
Similar questions
Environmental Sciences,
16 days ago
Geography,
16 days ago
Math,
1 month ago
Social Sciences,
1 month ago
Math,
8 months ago
Math,
8 months ago
English,
8 months ago