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 Equal__Words
- {
- class Program
- {
- static void Main(string[] args)
- {
- string FirstWord = Console.ReadLine();
- string SecondWord = Console.ReadLine();
- string FWord = FirstWord.ToLower();
- string SWord = SecondWord.ToLower();
- string FWordU = FirstWord.ToUpper();
- string SWordU = SecondWord.ToUpper();
- if ((FirstWord == SecondWord) || (FirstWord == SWord) || (SecondWord == FWord) ||
- (FirstWord == SWordU) || (SecondWord == FWordU) || (FWordU == SWordU))
- Console.WriteLine("yes");
- else
- Console.WriteLine("no");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement