English, asked by gurjararpit340, 4 months ago

2.Write a Qbasic Program for addition two numbers.​

Answers

Answered by Anonymous
1

Answer:

let the two numbers be 43 and 57.

so the program for adding these numbers in QBASIC is as follows -

CLS.

A = 43.

B = 57.

PRINT "The sum of" A "and" B "is" A + B.

END.

when you will execute this program, the result will be as follows -

Answered by atrs7391
0

CLS

INPUT "ENTER A NUMBER"; N1

INPUT "ENTER SECOND NUMBER: ",N2

SUM = N1+N2

PRINT "SUM = ";SUM

END

Similar questions