implicit none integer :: year, n, month, day, t ! t is an offset to account for leap years. print*, 'year, followed by day within year' read*, year, n ! checking for leap years if ((year/4)4year)then t=1 if ((year/400)*400year)then t=1 elseif ((year/100)100==year)then t=0 endif else t=0 endif ! accounting for february if (n>(59+t))then day=n+2-t else day=n endif month=(day+91)-(month3055)/100 month=month-2 print, 'calendar date is ', day, month, year
end
hello! pls am wondering what i am suppose to enter under the i/o
read*, year, n though the compilation appear correct but confuse what to enter as input argument, help pls if possible with an example. thank u!