C++ program to find total number of days in given month of year
While writing code in C++ programming language, sometimes we need to work with the date, this program may useful for you.
In this program, we are going to find total number of days in a month, year. Here, we are designing a function named getNumberOfDays(), function will take month and year as arguments, function will return total number of days.
Consider the program:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer