Vidyalelo
Ruby Programming · Q61

Operators in Ruby

Programming · Ruby Programming · question 61

Q61

What is the output of the given code? counter = 2 while counter < 68 puts counter counter**=2 end

A.
2 4 16 64
B.
2 4 16
Answer
C.
2 4 16 256
D.
None of the mentioned

Answer: Option B

Solution

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