VelizarAvramov

Equal Words

Mar 21st, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 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 SameWords
  8. {
  9.     class SameWords
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string wordOne = Console.ReadLine();
  14.             string wordTwo = Console.ReadLine();
  15.             wordOne = wordOne.ToLower();
  16.             wordTwo = wordTwo.ToLower();
  17.             if (wordOne == wordTwo)
  18.             {
  19.                 Console.WriteLine("yes");
  20.             }
  21.             else if (wordOne != wordTwo)
  22.             {
  23.                 Console.WriteLine("no");
  24.             }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment