Question: Task: Write a simple ett program based on the use of IF statements to show the number of days in each month. You need to
Task: Write a simple ett program based on the use of IF statements to show the number of days in each month. You need to ask the user to enter the number of the month (ie 1,2.3.4.....12) and based on that you need to output the result as following: The number of days for month (number of the month) is 30. The number of days for month (number of the month) is 31. The number of days for month (number of the month) is 28. In case the user entered a number other than 1 - 12 print: Not a valid number Or Or Or Remember: Jan, March, May, July, August, October and December have 31 Days April, June, September and November have 30 days February has 28 Days. Bonus: The output should be as following: The number of days for (name of the month) is 30. The number of days for (name of the month) is 31. The number of days for name of the month) is 28. Or Or
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
