English, asked by SaRwagYaSinGh, 10 months ago

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 Anonymous
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