Question: Summary: Loops for factorials. Write a program that finds the factorial for a given sequence of integers. Ask the user for the starting value, then
Summary: Loops for factorials. Write a program that finds the factorial for a given sequence of integers. Ask the user for the starting value, then ask the user for the ending value. Starting at the first number entered, display the factorial calculation and the result of the calculation on a line. Do this for each value from the first number to the last number entered. The factorial of a number n is = n * (n-1) * (n-2) * (n-3) ... * 1. Where the factorial of 0 is equal to 1. IE 5! = 5*4*3*2*1 = 120 Sample Execution: Welcome to the factorial calculator Enter the lower bound: 4 Enter the upper bound: 7 Calculating... 4! = 4 * 3 * 2 * 1 = 24 5! = 5 * 4 * 3 * 2 * 1 = 120 6! = 6 * 5 * 4 * 3 * 2 * 1 = 720 7! = 7 * 6 * 5 * 4 * 3 * 2 * 1 = 5040 Goodbye.
c#
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
