Vidyalelo
Ruby Programming · Q97

Control Structures in Ruby

Programming · Ruby Programming · question 97

Q97

What is the output of the given code? i = 50 while i > 25 do print 50/i i -= 1 end

A.
50..25
B.
50..1
C.
Infinite loop
D.
1111111111111111111111111
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board