A
Q. What will be the output of the given code?
Code:
counter = 1
while counter < 5
puts counter
counter = counter + 1
end
while counter < 5
puts counter
counter = counter + 1
end
- Correct Answer - Option(A)
- Views: 8
- Filed under category Ruby
- Hashtags:
Discusssion
Login to discuss.