1.如何用pascal编写一个万年历啊?希望大家帮个忙,易语言万源码易语言日急用啊!年历火球小店源码
如何用pascal编写一个万年历啊?希望大家帮个忙,易语言万源码易语言日商品源码在哪里急用啊!年历流媒体源码分析
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.