0

update existing variable

What are two ways to update an existing variable to reflect a new integer value that either adds to or subtracts from the original value?

27th Sep 2022, 1:32 AM
Mariel Domnenko
2 Answers
+ 1
With assignment operators += and -=
27th Sep 2022, 3:09 AM
Emerson Prado
Emerson Prado - avatar
0
Is it your homework? Read the study resources again, you'll most likely find the answer there. Please tag the relevant programming language.
27th Sep 2022, 9:35 AM
Lisa
Lisa - avatar