| Ashley Macdonald (18) | |
|
I know how to add 2 variables and cout it in a third variable, but how can i make one variable add itself to another variable. eg int Coins = 0 int Amount cin >> Amount //How do i add Amount to Coins? | |
|
|
|
| Peter87 (3691) | |
Coins = Coins + Amount;or Coins += Amount;
| |
|
|
|
| Reaper1 (132) | |
| yuppers, just like peter87 stated. | |
|
|
|