write a program in qb64 to in put 2 number
Answers
Answered by
1
' Ask the user for two numbers
' Add them up, print the sum.
'
PRINT "What is the first number"
INPUT NUMBER1
'
PRINT "What is the second number"
INPUT NUMBER2
'
LET SUM = NUMBER1 + NUMBER2
PRINT "The total is:", SUM
'
END
Here is an example run of the program:
What is the first number
? 15.2
What is the second number
? 2.5
The total is: 17.7
Answered by
0
Answer:
REM "INPUT 2 NUMBER"
CLS
PRINT "ENTER NUMBER 1"
INPUT NUM
PRINT "ENTER NUMBER 2"
INPUT NUM2
END
Similar questions