DEV Community

Ivan Ivanov
Ivan Ivanov

Posted on

2. Weekend or Working (If Construction)

using System;

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

        if (days == "Monday" || days == "Tuesday" || days == "Wednesday" || days == "Thursday" || days == "Friday")
        {
            Console.WriteLine("Working day");
        }
        else if (days == "Saturday" || days == "Sunday")
        {
            Console.WriteLine("Weekend");
        }
        else
        {
            Console.WriteLine("Error");
        }
    }
}
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)