Q. What is the output of the given code?
counter = 2
while counter < 68
puts counter
counter**=2
end
counter = 2
while counter < 68
puts counter
counter**=2
end
β
Correct Answer: (B)
2 4 16