#include
using namespace std;
int main()
{
int month, day, total_days;
int days_per_month[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
cout << "\nEnter month (1 to 12): "; <br>cin >> month;
cout << "Enter day (1 to 31): "; <br>cin >> day;
total_days = day;
for(int j=0; jtotal_days += days_per_month[j];
cout << "Total days from start of year is: " << total_days << endl; <br>cin.get();
cin.get();
return 0;
}