using System; class MainClass { public static void Main() { string str = "This is a test. $23"; Console.WriteLine("Original: " + str); // . string newstr = ""; for(int i=0; i < str.Length; i++) newstr += Char.ToUpper(str[i]); Console.WriteLine("Uppercased: " + newstr); } }
Original: This is a test. $23 Uppercased: THIS IS A TEST. $23