213k views
5 votes
Read the following code: x = currentWeight print(x - 20) What value will this code calculate?

A.Weight 20 years ago
B.Weight in 20 years
C.Weight after a 20-pound gain
D.Weight after a 20-pound loss

2 Answers

3 votes

Answer:

D.Weight after a 20-pound loss

Step-by-step explanation:

Since x is currentWeigh, currentWeigh - 20 = Weight after a 20-pound loss

Plus, I took the FLVS exam, and it was correct.

User Anders Pedersen
by
5.7k points
2 votes

D because weight print = x and -20 is the pound loss.

User Bettsy
by
5.0k points