FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 143   



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

puts "Please enter a string:"
input = gets.to_s.strip
upperCase = input.upcase      
puts "Given string to upper case: #{upperCase}"

Output:

Please enter a string:
hello
Given string to upper case: HELLO



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News