What is the output of the given code? a = 5 b=10 while a <10 || b<20 puts a*b a+=2 b+=2 end

Question:
 What is the output of the given code?

 a = 5
b=10
while a <10 || b<20
  puts a*b
  a+=2
  b+=2
  end

1.0 20

2.50 84 126 176 234

3.-5 -5 -5

4.None of the mentioned

Posted Date:-2022-02-07 06:54:05


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!