bacco

Choose a Drink

May 15th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.75 KB | None | 0 0
  1. using System;
  2. using System.Threading;
  3. using System.Xml.Schema;
  4.  
  5. namespace tESt
  6. {
  7.     class Program
  8.     {
  9.         static void Main(string[] args)
  10.         {
  11.             var profession  = Console.ReadLine().ToLower();
  12.  
  13.             if (profession == "athlete")
  14.             {
  15.                 Console.WriteLine("Water");
  16.             }
  17.             else if (profession == "businessman" || profession == "businesswoman")
  18.             {
  19.                 Console.WriteLine("Coffee");
  20.             }
  21.             else if (profession == "softuni student")
  22.             {
  23.                 Console.WriteLine("Beer");
  24.             }
  25.             else if (profession != "softuni student" ||
  26.                      profession != "businesswoman" ||
  27.                      profession != "businessman" ||
  28.                      profession != "athlete" )
  29.             {
  30.                 Console.WriteLine("Tea");
  31.             }
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment