Computer Science, asked by enterprisesraft, 7 days ago

Predict the output. A,B,C = 10,20,30 P,Q,R = C -5, A+3,B-4 A,B,C = B,C,A print(“A;B;C”,A,b,C) print(“P;Q;R”,P,Q,R)​

Answers

Answered by myselfmarv
0

Answer:

A;B;C 20 30 10

P;Q;R 25 13 16

Explanation:

Its easy, A, B AND C ARE CHANGING VALUES TO B, C AND A RESPECTIVELY, AND WE HAVE ALL THERE VALUES GIVEN IN THE FIRST LINE, SO JUST FIND THE NEW VALUES FOR A, B AND C.

AND FOR THE SECOND LINE YOU JUST HAVE TO FIND THE VALUES OF P, Q AND R WHICH IS C-5, A+3 AND B-4 RESPECTIVELY. HERE USE THE VALUES GIVEN IN THE QUESTION AND NOT THE CHANGED VALUES BECAUSE THE VALUES ARE CHANGING FROM THE THIRD LINE.

Similar questions