184k views
1 vote
Write a statement that increments the value of the int variable total by the value of the int variable amount. that is, add the value of amount to total and assign the result to total.

1 Answer

4 votes
total += amount;

Should do it.
User Vsz
by
7.6k points

No related questions found