Discussion :: Ruby Programming MCQs
-
What is the output of the given code?for num in 1..5puts num*numendx
Answer : Option C
Explanation :
Loop till the condition is met and break when the condition is not satisfied. Output: 1 4 9 16 25
Be The First To Comment