Created
November 30, 2016 11:52
-
-
Save reinisriekstins/be01f8de91fbb79e60209f4599d8f081 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.IO; | |
| using System; | |
| class Program | |
| { | |
| static void Main() | |
| { | |
| Console.WriteLine("Input your name:"); | |
| string name = Console.ReadLine(); | |
| Console.WriteLine("How many hours of sleep did you get last night?"); | |
| int hours = int.Parse(Console.ReadLine()); | |
| Console.WriteLine("Hello, " + name + "!"); | |
| if (hours >= 8) | |
| { | |
| Console.WriteLine("You are well rested"); | |
| } | |
| else | |
| { | |
| Console.WriteLine("You are NOT well rested"); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment