Question
What is the output of the given code?counter = 2while counter < 68 puts counter counter**=2 end
Answer: Option B
Was this answer helpful ?
The counter will increment by the power of two.
Output:
2
4
16
Was this answer helpful ?
Submit Solution