Computer Science, asked by unownme24, 2 months ago

Write a program which asks the user to enter two numbers. Add both numbers together and then work out if the new number is greater than 100. If it is, then output the message "sum bigger than 100". Otherwise, output the message "sum is 100 or below"

Answers

Answered by mj8303987
0

Answer:

I will try in Qbasic language it's a beginner-friendly language

Explanation:

CLS

INPUT "enter 2 numbers using a comma"; a, b

c=a+b

IF c> 100 THEN

 PRINT "sum bigger than hundred";

ELSE IF c<=100 THEN

 PRINT "sum is hundred or below"

END IF

END

Similar questions