FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 117   



Following program shows you how to convert given string to lower case.
In this program we get string from user and convert that string into lower case using .downcase

puts "Please enter the string:"
input = gets.to_s
lowerCase = input.downcase
puts "Given string in lower case: #{lowerCase}"

Output:

Please enter the string:
HELLO WORLD
Given string in lower case: hello world



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News