8. Cinema Ticket (Switch Construction)

ivanitd

Ivan Ivanov

Posted on January 20, 2023

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
💖 💪 🙅 🚩
ivanitd
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.

Related

10. Invalid Number
csharp 10. Invalid Number

January 20, 2023

11. Fruit Shop (Switch Construction)
csharp 11. Fruit Shop (Switch Construction)

January 20, 2023