Computer Science, asked by nairyutika, 6 months ago

Q5. Write QBasic programs for the following:
a. Find the sum of 56, 87, and 21.
b. Input two numbers and print their difference.
c. Display the names of three flowers in different lines.

Answers

Answered by saurabhsharma2802
5

Answer:

a)

a = 56

b = 87

c = 21

sum = a + b + c

PRINT sum

b)

PRINT "enter bigger number"

INPUT a

PRINT "enter smaller number"

INPUT b

difference = a - b

PRINT difference

c)

PRINT "rose"

PRINT "marigold"

PRINT "hibiscus"

Explanation:

Similar questions