In this article i have written a program to get the number of days in a month of particular year. When you execute the program it will prompt you to enter Year and month. Based on the month and year entered it will calculate the number of days in that month and total days in the year. It will also handle the number of days variation due to leap year by first checking whether the year is leap year or not.So basically this program covers the following:

Checking whether year is a leap year or not

Get Month name corresponding to entered number

Get number of days in the month

Get numbers of days in the year

Let's move forward and create the program.

Note: I have limited the year to be entered between 1100 to 9999. It means you can enter year between 1100 to 9999. But you can also change it as per your requirement.

Related Post

If you have any question about any post, Feel free to ask.You can simply drop a comment below post or contact via Contact Us form. Your feedback and suggestions will be highly appreciated. Also try to leave comments from your account not from the anonymous account so that i can respond to you easily..
ConversionConversionEmoticonEmoticon