Advertisement
marto223

Second Solution

Aug 5th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. public class Program
  6. {
  7.  
  8. public static void Main()
  9. {
  10. string profession = Console.ReadLine();
  11. switch (profession)
  12. {
  13. case "Athlete":
  14. Console.WriteLine("Water");
  15. break;
  16. case "Bussinessman":
  17. Console.WriteLine("Coffee");
  18. break;
  19. case "Bussinesswoman":
  20. Console.WriteLine("Coffee");
  21. break;
  22. case "SoftUni student":
  23. Console.WriteLine("Beer");
  24. break;
  25. default:
  26. Console.WriteLine("Tea");
  27. break;
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement