Question: Problem 6. The factorial of a positive integer n (written as n!) is equal to the product of the positive integers from 1 to n.

Problem 6.

The factorial of a positive integer n (written as n!) is equal to the product of the positive integers from 1 to n. For instance, 3! = 3 * 2 * 1 = 6. Write a C program that evaluates the factorials of the integers from 1 to 10. Print the results like the following format:

1! = 1

2! = 2

3! = 6

4! = 24

Change the range of the numbers to be able to compute the factorials of the numbers from 15 to 20 and explain what difficulty might prevent you from calculating the factorial of numbers like 20?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!