Write a program in QBASIC to accept two numbers and find the sum of this if the summation value is even then find the product of two numbers.
Answers
Answered by
1
Let the two numbers be 43 and 57
So the program 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 :
The sum of 43 and 57 is 100.
Hope it helpful to you.
Thank you
Similar questions
Geography,
3 hours ago
Math,
3 hours ago
Computer Science,
6 hours ago
English,
8 months ago
Social Sciences,
8 months ago