Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string answer = String.Empty;
- do
- {
- Console.WriteLine("What do you want to do?");
- Console.WriteLine("1. Eat");
- Console.WriteLine("2. Drink");
- Console.WriteLine("3. Play");
- answer = Console.ReadLine();
- Console.Clear();
- } while (answer != "1" && answer != "2" && answer != "3");
- if (answer == "1")
- {
- Console.WriteLine("du tog 1");
- }
- //handle answer here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement