呵呵,我高三正好复习一下...
INPUT "x="; x
a=x MOD 400
IF a=0 THEN
PRINT "yes"
ELSE b=x MOD 4
IF b=0 THEN
c=x MOD 100
IF c=0 THEN
PRINT "no"
ELSE
PRINT "yes"
END IF
END IF
END IF
END
MOD是取余数,你们应该学了吧?
呵呵,我高三正好复习一下...
INPUT "x="; x
a=x MOD 400
IF a=0 THEN
PRINT "yes"
ELSE b=x MOD 4
IF b=0 THEN
c=x MOD 100
IF c=0 THEN
PRINT "no"
ELSE
PRINT "yes"
END IF
END IF
END IF
END
MOD是取余数,你们应该学了吧?