Computer Science, asked by koral3172, 8 months ago

Q6. Write a program in QBASIC to add numbers.​

Answers

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

Explanation:

Answered by atrs7391
2

CLS

INPUT "ENTER A NUMBER"; N1

INPUT "ENTER SECOND NUMBER: ",N2

SUM = N1+N2

PRINT "SUM = ";SUM

END

Similar questions