The max Function gives the highest number in the range: : max « Range « Ruby






The max Function gives the highest number in the range:


range1 = 1..100

puts range1.max

# The output of this code is 100.

 








Related examples in the same category