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