you can multiply strings : multiply strings « String « Ruby






you can multiply strings



puts "abc" * 5

 

Related examples in the same category

1.What if you want to print out a line of text three times?
2.print one word three times, then add or append more text with +
3.You cannot multiply two strings