Question: Create an algorithm that gets a non-negative number, n, from the user. The algorithm then calculates the factorial of that number. Factorials are a simple
Create an algorithm that gets a non-negative number, n, from the user. The algorithm then calculates the factorial of that number. Factorials are a simple math concept. They're just products, indicated by an exclamation mark. For instance, "four factorial" is written as "4!" and means 1x2x3x4 = 24. In general, n! ("enn factorial") means the product of all the whole numbers from 1 to n; that is, n! = 1x2x3x ... xn. Create and submit a flowchart for this algorithm. You should use the Terminal, Input/Output, Process, Decision, and Flow Connector symbols. (Hint: You need to loop through the numbers.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
