write a qbasic program to input two numbers from the user. if the first number is greater than the second print their sum else print their difference.
Answers
Answered by
4
Write a QBasic program to input two numbers from the user.If the first number is greater than the second print their sum else print their difference.
Answer:
INPUT "FIRST NUMBER: ",FIRSTNUM
INPUT "SECOND NUMBER: ",SECONDNUM
IF
FIRSTNUM>SECONDNUM
THEN
PRINT FIRSTNUM+SECONDNUM
ELSE
PRINT SECONDNUM-FIRSTNUM
ENDIF
END
Explanation:
HOPE IT HELPS YOU
Similar questions
Social Sciences,
5 months ago
CBSE BOARD XII,
5 months ago
Math,
5 months ago
Geography,
10 months ago
Geography,
10 months ago