write a program to print the greater of two numbers entered by the user using QBASIC
Share
write a program to print the greater of two numbers entered by the user using QBASIC
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.
Answer:
QBasic Programming
REM. INPUT “ENTER ANY TWO NUMBERS”; A, B. IF A > B THEN. PRINT A; “IS GREATER” ...
DECLARE SUB GREAT (A, B) INPUT “ENTER ANY TWO NUMBERS”; A, B. CALL GREAT (A, B) SUB GREAT (A, B) ...
DECLARE FUNCTION GREAT (A, B) INPUT “ENTER ANY TWO NUMBERS”; A, B. PRINT “THE GREATER NUMBER IS”; GREAT (A, B)