for loop (75 points)
- Your program must allow the user to input an unsigned integer at the
keyboard and determine and output the factorial of the unsigned integer.
- Use a compound if statement to determine the factorial.
If the unsigned integer is zero or one then the factorial result is one.
Otherwise run through a for loop to output the factors and to determine
- Make sure your program can display the sample outputs below.
- Your code must be well documented. Also include your name, date,
project number and a breif description of the program.
Find the factorial of what number? : 4
4! = 1 x 2 x 3 x 4 = 24
Find the factorial of what number? : 5
5! = 1 x 2 x 3 x 4 x 5 = 120
Find the factorial of what number? : 0
0! = 1
Find the factorial of what number? : 1
1! = 1