Computer Science, asked by BLUSHINGGIRL80, 2 months ago

find the output in numeric variable ​

Attachments:

Answers

Answered by pujitha24cool
0

Answer:

84

Explanation:

P = 20

Q = 40

R = 80

S = 84

Answered by anindyaadhikari13
1

Required Answer:-

Given C∅de:

P = 20

Q = 2 * P

R = Q + Q

S = R + 4

PRINT S

END

To Find:

  • The output (Language: QBASIC)

Output:

  • 84

Solution:

It's given that,

→ P = 20

Calculating Q,

→ Q = 2 * P

→ Q = 2 * 20

→ Q = 40

Calculating R,

→ R = Q + Q

→ R = 40 + 40

→ R = 80

Calculating S,

→ S = R + 4

→ S = 80 + 4

→ S = 84

Now, S is printed.

Output: 84.

→ (Program Finished)

•••♪

Similar questions