|Professional Flowcharting||Home | Samples | Overview | Download Trial | Tutorial | Purchase | Upgrade | Support | Search|
N Factorial (N!) Flowchart
This flowchart answers the question "How do you draw a flowchart to
calculate N factorial?" N factorial is represented as N! where the
exclamation point means factorial. For example,
1! = 1
2! = 1*2 = 2
3! = 1*2*3 = 6
4! = 1*2*3*4 = 24
N! = 1*2*3...*N
N is an integer and is the input to the flowchart. This flowchart has a loop that starts with M = 1 and increments M until M equals the inputted value N. This program calculates N! by doing each multiplication. Since a computer can rapidly do calculations, it can implement a brute force solution rather than having to rely on a more elegant one.
The next question might be "Can you find a function that computes N! from N without doing each multiplication?"
|Drawing Instructions||If you haven't already done so, first download the
free trial version of RFFlow. It will allow you to open any chart and make
Once RFFlow is installed, you can open the above chart in RFFlow by clicking on n_factorial_flowchart.flo. From there you can zoom in, edit, and print this sample chart. It is often easier to modify an existing chart than to draw it from scratch.
To draw this chart without downloading it, run RFFlow and click on the More Shapes button. Scroll to the Flowcharting folder and click the plus sign to open it. Click the Colored Edge Shapes stencil and then click the Add Stencil button.
|Register | Documentation | Privacy and Security | Version Information | Free Additional Shapes | Software Resellers | Free Viewer | Contact | Full Version|
|PO Box 1244 Loveland CO 80539-1244 USA Phone 970 663 5767 www.rff.com email@example.com|
|Copyright © 1996-2019 RFF Electronics. All rights reserved.|