find the output in numeric variable
Attachments:
Answers
Answered by
0
Answer:
2700
Explanation:
A = 50 * 50 = 2500
P = 4 * 50 = 200
T = A + P = 2700
Answered by
0
Required Answer:-
Given C∅de:
S = 50
A = S * S
P = 4 * S
T = A + P
PRINT T
END
To Find:
- The output of the given c∅de. (Language: QBASIC)
Output:
- 2700
Solution:
It's given that,
→ S = 50
Calculating A,
→ A = S * S
→ A = 50 * 50
→ A = 2500
Calculating P,
→ P = 4 * S
→ P = 4 * 50
→ P = 200
Calculating T,
→ T = A + P
→ T = 2500 + 200
→ T = 2700
Now, T is displayed on the screen.
→ Output: 2700
(Program Finished)
•••♪
Similar questions