From e0c2974ca67adc0ba0bef2c925fa4d4f85d38e77 Mon Sep 17 00:00:00 2001 From: Nate G Date: Sun, 8 Oct 2017 20:18:11 -0700 Subject: [PATCH] Update Program.cs added a function that allows you to communicate with the program --- HelloWorld/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/HelloWorld/Program.cs b/HelloWorld/Program.cs index 26daecc..fdf0d13 100644 --- a/HelloWorld/Program.cs +++ b/HelloWorld/Program.cs @@ -12,6 +12,11 @@ static void Main(string[] args) { Console.WriteLine("Hello World!"); Console.WriteLine("Hello World, again!"); + string Input = Console.ReadLine(); + if (Input==("hi")) + { + Console.WriteLine("hi there"); + } } } }