Computer Science, asked by deepanshi061998, 10 months ago

e) Find output
P=10
Q=20
p*=Q/13
Q+=P+Q**2
Print(P,Q)

Answers

Answered by Romyo
0

Answer:

The answer will

1.538462

41.53846

Answered by abhyas29
1

Answer:

15.38, 55.38

Explanation:

p = 10

q = 20

p *= q / 13

p *= 20 / 13

P = P * 20 / 13

P = 10 * 20 / 13

p = 200 / 13

q += p + q * 2 (I assume this is a mistake and there's 1 *) { I just found out that this assumption is wrong, it is a valid operand in python }

q += 200 / 13 + 10 * 2

q += 200 / 13 + 20

q = q + 200 / 13 + 20

q = 20 + 200 / 13 + 20

q = 40 + 200 / 13

finally p = 15.38 & q = 55.38

assuming you have a function that can print two numbers

OUTPUT 15.38, 55.38

Similar questions