Computer Science, asked by slogoboy2008, 3 months ago


in python create a program to input the name of a month and based on this input the program should display the number of days in the month

Answers

Answered by Thorragnarok57
2

Explanation:

Input the month and year from the user. If the year is a leap year and (month == 2), display "Number of days is 29". Else if (month == 2), display "Number of days is 28". Else if((month == 1) ||(month == 3 || (month == 5) (month == 7) || (month == 8) || (month == 10) (month == 12)), display "Number of days is 31".

Answered by rishabhdevadhe
0

Explanation:

Input the month and year from the user. If the year is a leap year and (month == 2), display "Number of days is 29". Else if (month == 2), display "Number of days is 28". Else if((month == 1) ||(month == 3 || (month == 5) (month == 7) || (month == 8) || (month == 10) (month == 12)), display "Number of days is 31".

Similar questions