Advertisement
koksibg

Untitled

Jun 25th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Equal__Words
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. string FirstWord = Console.ReadLine();
  14. string SecondWord = Console.ReadLine();
  15. string FWord = FirstWord.ToLower();
  16. string SWord = SecondWord.ToLower();
  17. string FWordU = FirstWord.ToUpper();
  18. string SWordU = SecondWord.ToUpper();
  19. if ((FirstWord == SecondWord) || (FirstWord == SWord) || (SecondWord == FWord) ||
  20. (FirstWord == SWordU) || (SecondWord == FWordU) || (FWordU == SWordU))
  21. Console.WriteLine("yes");
  22. else
  23. Console.WriteLine("no");
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement