using System; using System.Collections.Generic; using System.Linq; namespace ProgramConsole { public class Program { public static void Main(string[] args) { string a = "aa"; string b = "bb"; if(b.CompareTo(a) > 0) { Console.WriteLine("b is greater than a"); } else if(b.CompareTo(a) < 0) { Console.WriteLine("b is less than a"); } else { Console.WriteLine("b is equal a"); } } } }