10)
The input N from the user is 6. The output of the following algorithm is
START
Read N
i=1
X=1
No
i <
N?
Yes
i=i+1
X=Xi
Print X
STOP
O a) 120
Ob) 720
c) 5040
d) 46656
Answers
Answered by
16
Answer:
720
Explanation:
out put would be 720
1 < 6
i = 1 + 1 = 2
=> X = 1 * 2 = 2
next
2 < 6
i = 2 + 1 = 3
=>X = 2 * 3 = 6
ans so on till i < 6
2 * 3 * 4 * 5 * 6
= 720
Similar questions