Advertisement
IvanBorisovG

ChooseADrink

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