Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _03.CompareCharArrays
- {
- class CompareCharArrays
- {
- static void Main(string[] args)
- {
- string chars1 = Console.ReadLine();
- string chars2 = Console.ReadLine();
- //int minLength = Math.Min(chars1.Length, chars2.Length);
- if (chars1.CompareTo(chars2) < 0)
- {
- Console.WriteLine("<");
- }
- else if (chars1.CompareTo(chars2) > 0)
- {
- Console.WriteLine(">");
- }
- else
- {
- Console.WriteLine("=");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement