Report Bug
Qus : Which variable must be initialized to 1 in the algorithm for factorial computation?
QusFactorial computation के algorithm में कौन-सा variable 1 से initialize किया जाना चाहिए?

A. Counter
B. Factorial value
C. Input number
D. Loop limit


Solution
B. Factorial value



Explanation
The factorial accumulator starts at 1 because 1 is the multiplicative identity.

Factorial accumulator को 1 से initialize किया जाता है क्योंकि multiplication की identity 1 है।



Report Bug