grigorb57

drinks

Jul 2nd, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.82 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 app1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string profession = Console.ReadLine();
  14.  
  15.             switch (profession)
  16.             {
  17.                 case "Athlete":
  18.                     Console.WriteLine("Water");
  19.                     break;
  20.                 case"Businessman":
  21.                 case "Businesswoman":
  22.                     Console.WriteLine("Coffee");
  23.                     break;
  24.                 case "SoftUni Student":
  25.                     Console.WriteLine("Beer");
  26.                     break;
  27.  
  28.                 default:
  29.                     Console.WriteLine("");
  30.                     break;
  31.             }
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment