M Usman OOP
M Usman OOP
Program 7.4
Write a program that inputs current day and month from the user. It
then calculates and displays the total number of days in current year till
the entered date.
#include <iostream>
using namespace std;
int main() {
int day, month, total = 0;
int days_per_month[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
return 0;
}