using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.Write("UR NAME PLS: ");
string name = Console.ReadLine();
while (name != "")
{
SayHelloTo(name);
Console.Write("UR NAME PLS: ");
name = Console.ReadLine();
}
Console.WriteLine("ENTER PLS!!1");
Console.Read();
}
static void SayHelloWorld()
{
Console.WriteLine("Hello, world!");
}
static void SayHelloTo(string toWhom)
{
string message = CalculateGreeting( toWhom );
Console.WriteLine(message);
}
static string CalculateGreeting(string toWhom)
{
string message;
if ( toWhom == "Eric" )
{
message = "Hi, " + toWhom;
}
else if (toWhom == "Audrey")
{
message = "Ahoy, " + toWhom + ", mah skipper!";
}
else
{
message = "Hello, " + toWhom;
}
return message;
}
}
}