a=12, b=6 c=9
a*= 10+(--a)%b+(++a)+(b++)-(--c)
Find output.
Answers
Answered by
2
- Find the output of the following code.
Given,
a=12
b=6
c=9
a*=10+(--a) %b+(++a)+(b++)-(--c)
Now, we will evaluate the expression to the right of the equal to operator.
So,
10+(--a)%b+(++a)+(b++)-(--c)
=10+(11%6)+ 12 + 6 -8
=10+5+12+6-8
=25
So,
b=7
c=8
a*=30=12*25=300
a=300
b=7
c=8
Similar questions