8. Cinema Ticket (If Construction)

ivanitd

Ivan Ivanov

Posted on January 20, 2023

8. Cinema Ticket (If Construction)
using System;

namespace CinemaTicket
{
internal class Program
{
    static void Main(string[] args)
    {
        string weekDay = Console.ReadLine();

        if (weekDay == "Monday")
        {
            Console.WriteLine("12");
        }
        else if (weekDay == "Tuesday")
        {
            Console.WriteLine("12");
        }
        else if (weekDay == "Wednesday")
        {
            Console.WriteLine("14");
        }
        else if (weekDay == "Thursday")
        {
            Console.WriteLine("14");
        }
        else if (weekDay == "Friday")
        {
            Console.WriteLine("12");
        }
        else if (weekDay == "Saturday")
        {
            Console.WriteLine("16");
        }
        else if (weekDay == "Sunday")
        {
            Console.WriteLine("16");
        }
    }
}
}
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