A
Q. What will be the output of the given ruby code?
Code:
a=[1,2,3,4,5]
b=[1,2,4,6,8]
if a[3]==b[2]
print Equal
end
b=[1,2,4,6,8]
if a[3]==b[2]
print Equal
end
- Correct Answer - Option(C)
- Views: 4
- Filed under category Ruby
- Hashtags:
Discusssion
Login to discuss.