Advertisement
saluxx

Main 1

Nov 5th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication12
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. Class1 egenskaper = new Class1();
  14.  
  15. string answer = String.Empty;
  16. do
  17. {
  18. Console.WriteLine("What do you want to do?");
  19. Console.WriteLine("1. Eat");
  20. Console.WriteLine("2. Drink");
  21. Console.WriteLine("3. Play");
  22. answer = Console.ReadLine();
  23. Console.Clear();
  24. } while (answer != "1" && answer != "2" && answer != "3");
  25.  
  26. if (answer == "1")
  27. {
  28. egenskaper.Play();
  29. }
  30. //handle answer here
  31.  
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement