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
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
India Languages,
3 months ago
Chemistry,
3 months ago
English,
3 months ago
English,
6 months ago
English,
6 months ago
Social Sciences,
11 months ago
Social Sciences,
11 months ago
Social Sciences,
11 months ago