Vidyalelo
Ruby Programming · Q94

Control Structures in Ruby

Programming · Ruby Programming · question 94

Q94

What is the output of the given code? a=5 b=15 while a&&b puts a+b end

A.
5..15
B.
20
C.
Infinite loop
Answer
D.
5 15

Answer: Option C

Solution

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