108k views
12 votes
Which of the following lines of code would reduce the player’s gold by 100 coins?

Group of answer choices

gold = 100

gold = gold + 100

gold -= 100

gold += 100

1 Answer

10 votes

Answer:

gold - = 100

Step-by-step explanation:

gold - = 100 is the answer as if you lose the gold / subtract it from your total this line of code would say how much you would lose. :)

Good Luck and please say I'm right!

User Duong Nguyen
by
4.4k points