Answer to Question #343901 in C# for Jen

Question #343901

Write a program in C# Sharp to display the name of the days of a week.


Expected Output:


Sunday


Monday


Tuesday


Wednesday


Thursday


Friday


Saturday

1
Expert's answer
2022-05-23T10:19:54-0400
using System;


namespace Program
{
    class Program
    {
        static void Main(string[] args)
        {
            foreach (var dw in Enum.GetValues(typeof(DayOfWeek)))
            {
                Console.WriteLine(dw.ToString());
            }
        }
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS