Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication12
- {
- class Program
- {
- static void Main(string[] args)
- {
- Class1 egenskaper = new Class1();
- 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")
- {
- egenskaper.Play();
- }
- //handle answer here
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement