minimum 3 elementów
def min3(a,b,c)
((a) < (b) ? ((a) < (c) ? (a) : (c)) : ((b) < (c) ? (b) : (c)))
end
print "Min of 3 elements = ", min3(5,6,7);
Mackerel
def min3(a,b,c)
((a) < (b) ? ((a) < (c) ? (a) : (c)) : ((b) < (c) ? (b) : (c)))
end
print "Min of 3 elements = ", min3(5,6,7);