Computer Science, asked by MalayaDhal, 7 months ago

a=12, b=6 c=9
a*= 10+(--a)%b+(++a)+(b++)-(--c)
Find output.​

Answers

Answered by anindyaadhikari13
2

\star\:\:\:\bf\large\underline\blue{Question:-}

  • Find the output of the following code.

\star\:\:\:\bf\large\underline\blue{Solution:-}

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

\star\:\:\:\bf\large\underline\blue{Output:-}

a=300

b=7

c=8

Similar questions