Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ChooseADrink
- {
- class Program
- {
- static void Main(string[] args)
- {
- var peronType = Console.ReadLine();
- var drink = string.Empty;
- if (peronType == "Athlete")
- {
- drink = "Water";
- }
- else if (peronType == "Businessman" || peronType == "Businesswoman")
- {
- drink = "Coffee";
- }
- else if (peronType == "SoftUni Student")
- {
- drink = "Beer";
- }
- else
- {
- drink = "Tea";
- }
- Console.WriteLine($"{drink}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement