1.如何用pascal编写一个万年历啊?希望大家帮个忙,易语言万源码易语言日急用啊!年历白鹤翔 js 源码
如何用pascal编写一个万年历啊?希望大家帮个忙,易语言万源码易语言日纸张计算网站源码急用啊!年历转发赚钱APP源码
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.