Question
What is the output of the given code?for num in 1..5 puts num*numendx
Answer: Option C
Was this answer helpful ?
Loop till the condition is met and break when the condition is not satisfied.
Output:
1
4
9
16
25
Was this answer helpful ?
Submit Solution