57.9k views
0 votes
a student writes a prgroma to find the factorial of a number. the factorial for a number n is defined as the product of all whole numbers between 1 and n, inclusive. while attempting to find the factorial for 120, the program's output is not what the student expectec. assuming that the program has been corectly written, what is a possible explanation for the incorrect output?

User Carin
by
6.1k points

1 Answer

5 votes

Answer:

B. Integers may be constrained in the maximum and minimum values that can be represented in a program because of storage limitations.

Step-by-step explanation:

Since the program has been written correctly by the student and yet the output of the program is not what was expected, then the next possibility is that because of the limitations in storage, the integers may be constrained in the minimum and maximum values capable of being represented when writing a program.

User JiiB
by
6.6k points