downto with block : downto « Statement « Ruby






downto with block


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 method with integer