Write a Ruby program to lower case, upper case and capitalizes all the words of a given string.
print("ruby exercises!".upcase) print("\n","Ruby Exercises!".downcase) print("\n","ruby exercises!".capitalize)
Output:
RUBY EXERCISES! ruby exercises! Ruby exercises!
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer