Mega Code Archive

 
Categories / Ruby / Statement
 

To iterate a set number of times, use the times iterator

5.times do   puts "You're going to see this five times, whether you want to or not!" end