C program to find number of days in a month using switch case
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
In this c program, we will learn how to get number of days in a month. To get number of days in a month we are using switch case statement in this program.
Here, we are not using break after each switch case statement because we can check multiple case values for same body.
Note: Here we are not checking leap year, so we fixed 28 days in February.
Program to find number of days in a month using C
Output
need an explanation for this answer? contact us directly to get an explanation for this answer