Advertisement
NadyaMisheva

Untitled

Nov 2nd, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     public static void Main()
  6.     {
  7.         string username = Console.ReadLine();
  8.         if (username == "Nadya")
  9.         {
  10.             Console.WriteLine("Hello {0}", username);
  11.         }
  12.         else
  13.         {
  14.             Console.WriteLine("{0}, you are stranger! Bye bye for now!", username);
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement