CPPForSchool.com: Flow of Control Set 2: Assignment 3

3. Write a program to find the factorial value of any number entered through the keyboard. 


This assignment was a bit difficult for me to comprehend.  I know what a factorial is and I had a feeling that a for loop would be utilized, but I could not get a grasp on how to implement it.  Nevertheless, my research sent me to Programiz, which contained an example program for this assignment topic. 







Of course, it would not be a test if I did not utilize the example figures.  Below are the screen
captures for my program and the example solution source and output.





Comments

Popular posts from this blog

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 8

CPPForSchool.com: Array - Single Dimension Set 1 Assignment 6

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 7