Computer Science, asked by simar1950, 1 year ago

Write a qbasic program to input two no. and subtract it

Answers

Answered by Anonymous
5
10 PRINT "Enter two numbers : "
20 INPUT First
30 INPUT Second
40 PRINT "Press '1' for Addition, '2' for Subtraction, '3 ' for Multiply and '4' for Divide "
50 PRINT "Enter your choice: "
60 INPUT Ch
70 LET Result = 0
80 IF Ch = 1 THEN Result = First + Second
90 IF Ch = 2 THEN Result = First - Second
100 IF Ch = 3 THEN Result = First * Second
110 IF Ch = 4 THEN Result = First / Second
120 PRINT "Solution of your entered choice is: "; Result
130 END
Similar questions