downto method with integer : downto « Statement « Ruby

downto method with integer

100.downto(1) { |c| print c, " "; sleep 1 }


Related examples in the same category

1.A downto iterator, which starts at a higher number and loops to a lower number.
2.Both the Integer and Date classes have downto methods
3.number of minutes you want to count down.
4.downto with block