Discussion :: Ruby Programming MCQs
-
What is the output of the given code?m= 0loop dom += 1print mbreak if m == 10end
Answer : Option A
Explanation :
Loop till the condition is met and break when the condition is not satisfied. Output: 12345678910
Be The First To Comment