Computer Science, asked by surjyoprprovomotilal, 1 month ago

write a program in Qbasic to take input of a number and print whether the number is greater than 10 or not​

Answers

Answered by anindyaadhikari13
9

\textsf{\large{\underline{Solution}:}}

The given problem is solved using language - QBASIC.

CLS

INPUT "Enter a number: "; N

IF N > 10 THEN

   PRINT "Number is greater than 10."

ELSE

   PRINT "Number is less than or equal to 10."

END IF

END

\textsf{\large{\underline{Explanation}:}}

  1. Line 1: Clears the screen.
  2. Line 2: Accepts the number from the user.
  3. Line 3-4: Check if number is greater than 10 or not. If true print "Number is greater than 10."
  4. Line 5-6: If false, print "Number is less than or equal to 10."
  5. Line 7: End of if.
  6. Line 8: End of program.

See the attachments for output.

Attachments:

anindyaadhikari13: Thanks for the brainliest :D
Answered by hussainsalma119
0

Answer:

These are the Steps, you can do in QB64.

Explanation:

Make me Brain List

Attachments:
Similar questions