Home / Programming MCQs / Ruby MCQs / Question

M

Mr. Dubey • 51.32K Points
Coach

Q. What is the output of the given code?
i = 50 
j=55
while i > 25 && j>35 do
  puts 50*j/i
  i -= 1
  j-=2
end

(A) 25 35
(B) 50 55
(C) Infinite loop
(D) 55 54 53 52 51 50 48 47 46 45

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.