1.upto(5) { …code to loop here… } : Code Block Method Ruby



1.upto(5) { puts "Test" }