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.
LANGUAGE: C++
CHALLENGE:
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.
SOLUTION:
total+=amount;