A
Q. What will be the output of the given code?
Code:
i = 4
while i > 0 do
print i
i -= 1
end
while i > 0 do
print i
i -= 1
end
- Correct Answer - Option(C)
- Views: 21
- Filed under category Ruby
- Hashtags:
Discusssion
Login to discuss.