if (number_of_days < month[i]) { //stoping the loop when number_of_days less than number of days in current month break; } else { number_of_months++; number_of_days = number_of_days - month[i]; } i++; }
cout << "The number of months : " << number_of_months << " "; cout << "The number of days : " << number_of_days << " ";
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments