1.如何用pascal编写一个万年历啊?希望大家帮个忙,易语言万源码易语言日急用啊!年历应用商店iapp源码
如何用pascal编写一个万年历啊?希望大家帮个忙,易语言万源码易语言日MDClub轻量级论坛源码急用啊!年历无糖溯源码燕窝
PROGRAM n;
TYPE
a=1..;
b=1..;
c=..;
VAR
year:a;
month:b;
day:c;
days,易语言万源码易语言日如何才能生成溯源码num:integer;
BEGIN
writeln('please input year month day');
read(year,month,day);
IF month=1
THEN days:day
ELSE IF month=2
THEN days:=+day
ELSE BEGIN
CASE month OF
3 :num:=1;
4,5 :num:=2;
6,7 :num:=3;
8 :num:=4;
9, :num:=5;
,:num:=6;
END;
IF ((year MOD 4=0) AND (year MOD <>0)) OR (year MOD =0)
THEN days:=*(month-1)+num+day-1
ELSE days:=*(month-1)+num+day-2
END;
writeln(days,year,month,day);
END.