In this program we have to make a loop in which we find the factorial number of the one ingress by the user. Then we have to ask if he wants to ingress another number to calculate the factorial.
The factorial function (symbol: !) means to multiply a series of descending natural numbers. Example:
- 4! = 4 × 3 × 2 × 1 = 24
I´m going to use a For loop to make the factorial inside a Do-While loop to ask if he wants another number.
The code will be here at GitHub
WSQ09 Factorial by josequirogablog is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.