1. Find the output of following pseudo code (take number = 6) : [2021]
Read number
K=2
i=2
while i<=number
k=k*i
i=i+1
end while
write k
A. 1440.0
B. 1700.0
C. 1560.0
D. 1340.0
(d)
Explanation : Loop will execute 5 times i.e from i = 2 to i = 6
For i = 2, k = 4
For i = 3, k = 12
For i = 4, k = 48
For i = 5, k = 240
For i = 6, k = 1440
For i = 7, condition becomes false.

I LOVE COG, JUST AWESOME CONTENT.
I think its ans is – C1 and C2 and NOT c4
correct ans is b
what they are provided as a answer of this question 18 as d is wrong answer…….
Correct answer is c