Mega Code Archive

 
Categories / Ruby / Statement
 

Use a value in a variable with times

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