monthlist= ['January  '; 'February ';'March    '; 'April    '; 'May      '; 
              'June     '; 'July     ';'August   '; 'September'; 'October  '; 
              'November '; 'December ' ];
month = input('input a number 1-12 for a month ');      % month2.m
switch (month) 
case { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
  month_name = monthlist(month,1:end);
  fprintf(' Month is %s \n',month_name); 
otherwise
  fprintf('Invalid month number \n'); 
end
