C#: Get the number of days of a given month for a year
Write a program in C# Sharp to get the number of days in a given month for a year.
Sample Solution:-
C# Sharp Code:
Sample Output:
Find the number of days of a given month for a year : ----------------------------------------------------------- Input the Month No. : 6 Input the Year : 2017 The Number of days in the month June is : 30
Flowchart:

C# Sharp Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Write a program in C# Sharp to get the last day of the current year against a given date.
Next: Write a program in C# Sharp to get the day and month name of current date.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.