CLS
FOR a = 1 TO 20
FOR b = 1 TO 33
FOR c = 3 TO 99 STEP 3
IF a + b + c = 100 THEN
IF 5 * a + 3 * b + c / 3 = 100 THEN
PRINT "gongji:"; a, "muji:"; b, "xiaoji:"; c
end if
end if
NEXT c
NEXT b
NEXT a
END
CLS
FOR a = 1 TO 20
FOR b = 1 TO 33
FOR c = 3 TO 99 STEP 3
IF a + b + c = 100 THEN
IF 5 * a + 3 * b + c / 3 = 100 THEN
PRINT "gongji:"; a, "muji:"; b, "xiaoji:"; c
end if
end if
NEXT c
NEXT b
NEXT a
END