def repeat( word="Hello! ", times=3 ) puts word * timesendrepeat # => Hello! Hello! Hello!repeat( "Goodbye! ", 5 ) # => Goodbye! Goodbye! Goodbye! Goodbye! Goodbye!