fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. namespace ProgramConsole
  6. {
  7. public class Program
  8. {
  9. public static void Main(string[] args)
  10. {
  11. string a = "aa";
  12. string b = "bb";
  13.  
  14. if(b.CompareTo(a) > 0)
  15. {
  16. Console.WriteLine("b is greater than a");
  17. }
  18. else if(b.CompareTo(a) < 0)
  19. {
  20. Console.WriteLine("b is less than a");
  21. }
  22. else
  23. {
  24. Console.WriteLine("b is equal a");
  25. }
  26. }
  27. }
  28. }
Success #stdin #stdout 0.05s 33816KB
stdin
Standard input is empty
stdout
b is greater than a