M
Q. What is output of the given code?
counter=-3
if counter<=5
puts (counter)
counter=counter+1
puts (counter)
elsif counter>5
puts (counter)
counter=2*counter
puts(counter)
end
- Correct Answer - Option(A)
- Views: 54
- Filed under category Ruby
Discusssion
Login to discuss.