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(A)
- Views: 8
- Filed under category Ruby
- Hashtags:
Discusssion
Login to discuss.