DEV Community

Ivan Ivanov
Ivan Ivanov

Posted on

8. Cinema Ticket (Switch Construction)

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;
        }

    }
}
}
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
alexanderdanks profile image
Alexander Danks • Edited

If you're someone who loves to enjoy the latest movies and shows at the cinema, getting your hands on a cinema ticket is a must. But with busy schedules and long queues, the process of buying a ticket can be a hassle. Fortunately, the internet has made it possible to buy cinema tickets without leaving the comfort of your home. With websites like vesnatickets.com, you can easily purchase tickets for all the latest concerts and theatrical performances. This website is a one-stop-shop for all your ticketing needs, providing you with easy access to the hottest shows around.