function lizi_doy
% 这个程序是用来计算输入的某一年,某一月,某一日在当年是第多少天
% 定义变量:
% year --输入的年份
% month --输入的月份
% day --输入的日期
% leap_day --闰年多出的那一天
% day_of_year --一年中的第多少天
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%提示输入年、月、日%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
year=input('Enter the value of Year:');
month=input('Enter the value of Month:');
day=input('Enter the value of Date:');
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%判断输入的年份是不是闰年%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if mod(year, 400)==0
leap_day=1;%如果输入的年数能被400,整除,则说明这一年是闰年
elseif (mod