Question: Write a program that prompts the user to enter the year and month, and displays the number of days in the month. For example,

Write a program that prompts the user to enter the year and month, and displays the number of days in the month. For example, if the user entered month 2 and year 2000, the program should display that February 2009 has 29 days. If the user entered month 3 and year 2005, the program should display that March 2010 has 31 days.
Step by Step Solution
3.42 Rating (155 Votes )
There are 3 Steps involved in it
Code in Java displaying the month name Code in Text import javautil public class Main public static ... View full answer
Get step-by-step solutions from verified subject matter experts
