Ruby Basic Exercises: Print a specified character twenty times
Write a Ruby program to print a specified character twenty times.

Ruby Code:
puts '*'*20
puts '#'*20
puts '@'*20
Output:
******************** #################### @@@@@@@@@@@@@@@@@@@@
Flowchart:

Go to:
PREV :Write a Ruby program to retrieve the total marks where subject name and marks of a student stored in a hash.
NEXT : Write a Ruby program to test whether a year is leap year or not.
Ruby Code Editor:
Contribute your code and comments through Disqus.
What is the difficulty level of this exercise?