VelizarAvramov

01. Choose a Drink

Nov 9th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _01._Choose_a_Drink
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string profession = Console.ReadLine();
  10.  
  11.             if (profession == "Athlete")
  12.             {
  13.                 Console.WriteLine("Water");
  14.             }
  15.             else if (profession == "Businessman" || profession == "Businesswoman")
  16.             {
  17.                 Console.WriteLine("Coffee");
  18.             }
  19.             else if (profession == "SoftUni Student")
  20.             {
  21.                 Console.WriteLine("Beer");
  22.             }
  23.             else
  24.             {
  25.                 Console.WriteLine("Tea");
  26.             }
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment