rewrite the following statement without using shorthand operators. (1. p / = q), (2. p - = 1 ),(3.p * = q +r), (p - = q - r).
Answers
Answered by
16
Shorthand operators Without using shorthand operator
1) p/=q ---------> p=p/q
2) p-=1 -----------> p=p-1
3) p*=q+r ----------> p=p*(q+r)
4) p-=q-r -----------> p=p-q-r
Mark me as brainlest @
Follow me for more programming related doubts.
Answered by
7
Answer:
Explanation:
p/=q
write it as -> p=p/q
p-=1
write it as -> p=p-1
p*=q+r
write it as -> p*(q+r)
p-=q-r
write it as -> p=p-(q-r) 'or' p=p-q+r
Hope it helps :-)
..............
Similar questions