Advertisement
saluxx

Ask

Nov 25th, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 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 ConsoleApplication15
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. string answer = String.Empty;
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. while (1 < 2)
  23. {
  24. do
  25. {
  26. Console.WriteLine("What do you want to do?");
  27. Console.WriteLine("1. Eat");
  28. Console.WriteLine("2. Drink");
  29. Console.WriteLine("3. Play");
  30. answer = Console.ReadLine();
  31. Console.Clear();
  32.  
  33. } while (answer != "1" && answer != "2" && answer != "3");
  34.  
  35. if (answer == "1")
  36. {
  37.  
  38. }
  39. else if (answer == "2")
  40. {
  41.  
  42. }
  43. else if (answer == "3")
  44. {
  45.  
  46. }
  47.  
  48. }
  49.  
  50.  
  51.  
  52.  
  53. }
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement