The input N from the user is 6. The output of the following algorithm is
a) 120
b) 720
c) 5040
d) 46656
Answers
Answered by
1
720 is the correct answer.
N=6
I<N
X=I×X
I=1
X=1
I=2
X=2×1=2
So,
1*2*3*4*5*6=720
Similar questions