A
Q. What is the output of the given code?
a=10
b=2
if a>b
a=a*b
puts (a)
elsif a<b
a=a*a+b
puts (a)
else
a=a-b
puts (a)
end
- Correct Answer - Option(A)
- Views: 21
- Filed under category Ruby
- Hashtags:
Discusssion
Login to discuss.