Create upper and lowercase versions of a string
using System;
class MainClass {
public static void Main() {
string str1 = "ABCDEabcde1234567890";
string strLow = str1.ToLower();
string strUp = str1.ToUpper();
Console.WriteLine("Lowercase version of str1:\n " + strLow);
Console.WriteLine("Uppercase version of str1:\n " + strUp);
}
}
Output Lowercase version of str1:
abcdeabcde1234567890
Uppercase version of str1:
ABCDEABCDE1234567890
|
HTML code for linking to this page:
|