CLS
INPUT "A, B, C = "; a, b, c
IF a > b AND a > c THEN
PRINT "max ="; a
ELSEIF b > a AND b > c THEN
PRINT "max ="; b
ELSEIF c > a AND c > b THEN
PRINT "max ="; c
ELSEIF a = b OR b = c OR c = a THEN
PRINT "all numbers are the same"
END IF
END
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
CLS
INPUT "A, B, C = "; a, b, c
IF a > b AND a > c THEN
PRINT "max ="; a
ELSEIF b > a AND b > c THEN
PRINT "max ="; b
ELSEIF c > a AND c > b THEN
PRINT "max ="; c
ELSEIF a = b OR b = c OR c = a THEN
PRINT "all numbers are the same"
END IF
END