%program to give the number of days in a month

function [out]=dayspermonth(month_in);

DAYSPM = [31 28 31 30 31 30 31 31 30 31 30 31];

out=DAYSPM(month_in);
