Question: b) Draw a flowchart that calculates the arithmetic factorial function, which is defined as: factorial (x) = x * (x-1) * (x-2)* ... * 1.
b) Draw a flowchart that calculates the arithmetic factorial function, which is defined as: factorial (x) = x * (x-1) * (x-2)* ... * 1. According to the next assumptions: 1) Get x as input. 2) Calculate the factorial. 3) Print the result. Check the correctness of your proposed flowchart by examining the result on the value of factorial(4) according to your flowchart steps
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
