Computer Science, asked by prathamkorlana, 6 months ago

Give the output of the following expressions if a=8 and b = 5:

i) a+=b

ii) a-=b

iii) a%=b

iv) a*=b​

Answers

Answered by allysia
0

Answer:

The outputs are:

i) 13

ii) 3

iii)3

iv)40

Explanations:

i) It implies a+b=a, which means a=8+5=13.

ii) Similarly this one implies that a-b=a which is a= 8-5=3.

iii) a%b=a = 3

iv) a=a*b=8*5=40

Similar questions