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

  • برمجة
  • برمجة روبي

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!
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...