rendered paste body#include <iostream.h>#include <conio.h> //get_day functionvoid get_days(int month, int&total){int c;total = 0;int Modays[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};cout<< "month entered " << month << endl; for (c =0; c< month - 1; c++){ total = total + Modays [c];} return;}//end of get_day function //leap functionint leap(int year){if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))return 1; elsereturn 0;}//end of leap functionint main(){ //inputint temp, month [20], day [20], year [20], count, c, answer;int total [20] = {0};int manyday;int ct = 0;cout << "Enter the Month or 0 to end" << endl; cin >> temp;while (temp != 0 && ct <= 20){month [ct] = temp;cout << "Enter the day" << endl; cin >> day [ct];cout << "Enter the year : " << endl; cin >> year [ct];ct ++;cout << "Enter the Month or 0 to end" << endl; cin >> temp;}//end whilecount = ct;for (c = 0 ; c < manyday; c++){get_days( month [c], total[c]);if (leap(year[c] ==1 ) && month [c] > 2)total [c] = total [c] + 1;elsetotal [c] = total [c] + day[c];cout << "the date you entered is: " << "month" << month << "day" << day << "year" << year << endl;cout << "the day number is: " << ???? << endl;}return 0;} //main