QBASIC: to find smaller one among three numbers
WAP to
enter any three numbers and display the smallest one.
CLS
INPUT "Enter any
three number" ; A, B, C
IF A<B AND
A<C THEN
PRINT "The
smallest number is"; A
ELSEIF B<C AND
B<A THEN
PRINT "The
smallest number is "; B
ELSE
PRINT "The
smallest number is "; C
END IF
END
Comments
Post a Comment