Advertisement
martinvalchev

Choose_a_Drink

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