Advertisement
Qrist

String Equals Ignore Case

Apr 12th, 2020
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5.     static void Main(string[] args)
  6.     {
  7.         string first = Console.ReadLine();
  8.         string second = Console.ReadLine();
  9.         Console.WriteLine(first.Equals(second,StringComparison.OrdinalIgnoreCase));      
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement