veronikaaa86

01. Choose a drink

Jan 31st, 2018
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 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 Ex1_ChooseADrink
  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.                 default:
  28.                     Console.WriteLine("Tea");
  29.                     break;
  30.             }
  31.         }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment