write a program in QBASIC TO PRINT THE GREATEST OF 2 NOS using LET statement
Share
write a program in QBASIC TO PRINT THE GREATEST OF 2 NOS using LET 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.
Your answer:
CLS
INPUT " Enter first and second number";a,b
IF(a>b) THEN
PRINT " FIRST NUMBER IS GREATER"
ELSE IF(a<b) THEN
PRINT " SECOND NUMBER IS GREATER"
ELSE
PRINT"BOTH NUMBER ARE EQUAL"
END