Ruby/Range/max
Материал из Wiki.crossplatform.ru
(Различия между версиями)
ViGOur (Обсуждение | вклад) м (1 версия: Импорт выборки материалов по Ruby) |
Текущая версия на 17:59, 13 сентября 2010
The max Function gives the highest number in the range:
range1 = 1..100 puts range1.max # The output of this code is 100.