Discussion :: Ruby Programming MCQs
-
What is the output of the given code?a = 5b=10while aputs a*ba+=2b-=2end
Answer : Option B
Explanation :
The do statement here indicates that till the while condition is true execute the instructions and will print a*b only till a Output: 50 56
Be The First To Comment