Respuesta :

Answer:

[tex]a=22.5[/tex]

Explanation:

Given

[tex]a*=++a/6+b++3[/tex]

Required

The result when [tex]a=3[/tex] and [tex]b=4[/tex]

Analyzing the given instruction

a*=(++a)/(6)+(b++3)

Single out and solve the expressions in bracket

(++a) = a -- When the ++ operator appears before an operand, it is called pre increment. meaning that the operation will be done before the operand will be incremented.

So: in this case: ++a = a

[tex]b++3 = b + 3[/tex]

The operator, as used in that statement is the same as: b + 3.

So:

[tex]a*=(++a)/(6)+(b++3)[/tex]

[tex]a*=(a)/(6)+(b+3)[/tex]

[tex]a*=(3)/(6)+(4+3)[/tex]

[tex]a*=0.5+7[/tex]

[tex]a*=7.5[/tex]

The above expression is calculated as:

[tex]a=a*7.5[/tex]

So:

[tex]a=3*7.5[/tex]

[tex]a=22.5[/tex]

ACCESS MORE
EDU ACCESS