find the numeric variable
Attachments:
Answers
Answered by
0
Required Answer:-
Given C∅de:
A = 100
B = 200
IF A > B THEN
PRINT A
ELSE
PRINT B
END
To Find:
- The output of the given program (Language: QBASIC)
Output:
- 200
Explanation:
It's given that,
→ A = 100
→ B = 200
→ A > B is false as 100 > 200 is false.
Thus, if block will not execute. Else block will execute.
So, it prints the value of B on the screen.
→ Value of B = 200
→ Output: 200
•••♪
Similar questions