Important MCQ

Output? (factorial) int n = 5, f = 1; while (n > 1) { f *= n; n--; } cout << f;

Q.Output? (factorial) int n = 5, f = 1; while (n > 1) { f *= n; n--; } cout << f;

A) 24
B) 120
C) 60
D) 720
Correct Answer:
Option B