| Professional Flowcharting | Home | Samples | Overview | Download Trial | Tutorial | Purchase | Upgrade | Support | Search |
N Factorial (N!) Flowchart |
| Description |
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
modifications. 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 |
| Register | Documentation | Privacy and Security | Version Information | Free Additional Shapes | Software Resellers | Free Viewer | Contact |
| RFF Electronics |
| PO Box 1244 |
| Copyright © 1996-2010 RFF Electronics. All rights reserved. |