write a program in QBASIC to PRINT the greatest of 3 no's using LET AND INPUT statement
Share
write a program in QBASIC to PRINT the greatest of 3 no's using LET AND INPUT statement
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Question-
Write a program in QBASIC to PRINT the greatest of 3 no's using LET AND INPUT statement.
Answer-
CLS
INPUT"ENTER THREE NUMBERS";a,b,c
IF (a>b) AND (a>c) THEN
PRINT "FIRST NUMBER IS GREATER"
ELSEIF (b>a) AND (b>c) THEN
PRINT "SECOND NUMBER IS GREATER"
ELSE
PRINT "THIRD NUMBER IS GREATER"
END IF
END
Hope it helps:)