Q:

Write a Ruby program to lower case, upper case and capitalizes all the words of a given string

0

Write a Ruby program to lower case, upper case and capitalizes all the words of a given string.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

print("ruby exercises!".upcase)
print("\n","Ruby Exercises!".downcase)
print("\n","ruby exercises!".capitalize)

Output:

RUBY EXERCISES!
ruby exercises!
Ruby exercises!

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now