不是VIP会员,不能显示答案

题目解答

题目:
var
x:longint;
flag: boolean;
begin
read(x);
flag := false;
if (x mod 4 = 0) and (x mod 100 <> 0) then flag := true;
if x mod 400 = 0 then flag := true;
if flag then writeln(‘leap year!’)
else writeln(‘not a leap year!’);
end.

输入:1234
输出
输出:not a leap year!
考点:
分析:
解答:
评论:
老师: