Mega Code Archive

 
Categories / Ruby / Range
 

Prints 3 Flips and flops back when x==3

(1..10).each {|x| print x if x==3..x>=3 }