Computer Science, asked by gauravroy810, 7 months ago

Write a QB64 program which should ask the user to enter his or her city's temperature (in Celsius). Depending on the temperature, the output should display a message according to the
following classification:

• Greater than 40: "It's a very hot day

•In the range 35 to 39: "It's a hot day"

•In the range 30 to 34: "It's a warm day

•In the range 20 to 29: "It's a pleasant day"

•19 or below: "It's a cold day"

Please don't spam , answer only if you can .......!!​

Answers

Answered by imtiyazallam
1

Answer:

CLS

INPUT "What is the temperature of the city:", A

IF A < 20 THEN

PRINT "It's a cold day."

ELSEIF A >= 20 AND A <= 29 THEN

PRINT "It's a pleasant day."

ELSEIF A >= 30 AND A <= 34 THEN

PRINT "It's a warm day."

ELSEIF A >= 35 AND A <= 39 THEN

PRINT "It's a hot day."

ELSE

PRINT "Its a very hot day."

END IF

END

Attachments:
Similar questions