lengthOfYear function

int lengthOfYear(
  1. int year
)

int FunctionlengthOfYear That Takes int year Return the Days number of the Year

Implementation

int lengthOfYear(int year) {
  int total = 0;
  for (int m = 0; m <= 11; m++) {
    total += getDaysInAMonth(year, m + 1);
  }
  return total;
}