Discussion :: Ruby Programming MCQs
-
What is the output of the given code?i = 3while i > 0 doprint ii -= 1end
Answer : Option B
Explanation :
The do statement here indicates that till the while condition is true execute the instructions. Output: 321
Be The First To Comment