Mega Code Archive

 
Categories / Ruby / Range
 

Prints 34 Flips when x == 3 and flops when x==4

(1..10).each {|x| print x if x==3...x>=3 } # Prints "34"