6 program solution
6 program solution
h>
#include <stdlib.h>
int main() {
int dob_day, dob_month, dob_year;
int today_day, today_month, today_year;
// Subtract days for the months before the birth month in the birth
year
for (int month = 1; month < dob_month; month++) {
total_days -= days_in_month(month, dob_year);
}
// Subtract days for the days before the birth day in the birth month
total_days -= dob_day;
// Output results
printf("Total minutes spent sleeping: %d\n",
total_sleeping_minutes);
printf("Total minutes spent eating: %d\n", total_eating_minutes);
printf("Total years spent reading: %d\n", total_reading_years);
return 0;
}