Write A BASIC-256 Program To Find The Sum Of The Two Variables.
Answers
Answered by
8
Program is given below.
Explanation:
PRINT "----Program to add two numbers----"
'Consider two variables A and B. You can give any values to the variables.
A=5
PRINT "The value of first variable is: "; A
B=6
PRINT "The value of second variable is: "; B
'Now, we are adding them. Before adding, we need to store result in some other variable. Let another variable is Sum.
Sum = A + B
PRINT "The sum of the two numbers is: "; Sum
Refer the attached image for the output.
Attachments:
Similar questions