Rewrite the expression a=a+10 using arithmetic assignment operator
Answers
Answered by
3
Answer:
a+=10
...............
Answered by
0
a + = 10
- Arithmetic assignment operators are also known as compound assignment operators.
- The assignment operator = sets a variable's, a property's, or an indexer element's value to the value of its right-hand operand.
- Arithmetic assignment operators are a short-hand form of arithmetic operators.
- Examples: +=, -=, *=, /=
In the given expression a = a + 10, a is being incremented by 10.
So, we can write it as a + = 10.
#SPJ3
Similar questions