- using System;
- namespace CSharpFundamentals
- {
- class UpperCaseAndLowerCase
- {
- private static void Main(string[] args)
- {
- String msg = " C# is COOL too ";
- Console.WriteLine("Message in Uppercase: {0}", msg.ToUpper());
- Console.WriteLine("Message in lowercase: {0}", msg.ToLower());
- }
- }
- }
Answer:
Message in Uppercase: C# IS COOL TOO
Message in lowercase: c# is cool too