Advertisement
Guest User

EqualWords

a guest
Apr 25th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. using System;
  2.  
  3. namespace EqualWords
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string firstWord = Console.ReadLine();
  10.             string secondWord = Console.ReadLine();
  11.  
  12.             firstWord = firstWord. ToUpper();
  13.             secondWord = secondWord. ToUpper();
  14.  
  15.             if (firstWord == secondWord)
  16.             {
  17.                 Console.WriteLine("yes");
  18.  
  19.             }
  20.            else
  21.             {
  22.                
  23.                  Console.WriteLine("no");
  24.             }
  25.     }   }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement