Computer Science, asked by amitkapoor916, 2 days ago

Correct and rewrite the following QBasic Statements :

a) IF A IS GREATER THAN B THEN PRINT A OTHERWISE PRINT B​

Answers

Answered by naik74824
3

Answer:

if a is greater than b then you should print the a is greater than b

Answered by qwsuccess
0

QBasic statement to check whether A is greater or B is greater:

IF A>B THEN

    PRINT A

ELSE

    PRINT B

END IF

  • IF...THEN...ELSE Statement executes a statement or statement block depending on specified conditions.
  • If the specified condition is TRUE the statement block in if-part is executed and if the condition is FALSE, the statement block in else-part is executed.
Similar questions