8. Cinema Ticket (Switch Construction)
Ivan Ivanov
Posted on January 20, 2023
using System;
namespace CinemaTicket_Switch
{
internal class Program
{
static void Main(string[] args)
{
string weekDay = Console.ReadLine();
switch (weekDay)
{
case "Monday":
case "Tuesday":
case "Friday":
Console.WriteLine("12");
break;
case "Wednesday":
case "Thursday":
Console.WriteLine("14");
break;
case "Saturday":
case "Sunday":
Console.WriteLine("16");
break;
}
}
}
}
💖 💪 🙅 🚩
Ivan Ivanov
Posted on January 20, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.