The min Function gives the lowest number in the range: : min « Range « Ruby






The min Function gives the lowest number in the range:


range1 = 1..100

puts range1.min

# The output of this code is 1.

 








Related examples in the same category