write a qbasic program to accept 2 numbers and print their sum and product by leaving 2 lines in between.
Answers
Answered by
2
Question:-
- Program to accept two numbers and print the sum and product by leaving two lines in between.
__________
Code:-
CLS
PRINT"ENTER A NUMBER"
INPUT A,B
SUM=A+B
PRO=A*B
PRINT"SUM="+SUM
PRINT"PRODUCT="+P
END
__________
Note:-
- PRINT Statement Without any message will move the cursor to the next line
- Therefore,Two single print statement will leave one line respectively.
Similar questions
English,
2 months ago
Math,
2 months ago
Social Sciences,
5 months ago
Psychology,
11 months ago
Physics,
11 months ago
Math,
11 months ago