26.0k views
0 votes
Which of the following options shows the correct code to increase a player’s lives by an amount equal to a variable called hits?

A.
lives == lives + hits

B.
hits == lives + hits

C.
lives = lives + hits

D.
lives + hits = lives

User Timaschew
by
7.8k points

2 Answers

2 votes
the answer to the problem is C
User Sean Christe
by
7.8k points
2 votes

The answer is C.

The line lives = lives + hits increments a player's lives by an amount equat to hits.

User Xudong Zhang
by
8.5k points

No related questions found