Computer Science, asked by rimi1411, 5 months ago

write a qbasic program to accept 2 numbers and print their sum and product by leaving 2 lines in between.​

Answers

Answered by BrainlyProgrammer
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

PRINT

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