Computer Science, asked by Durganandan9232, 6 months ago

If a=12 , b=18;find the value of a*=++a/6+b++ % 3

Answers

Answered by anindyaadhikari13
1

Question:-

If a=12,b=18, find the value of a if

a*=++a/6+b++%6

Solution:-

Given,

a=12

b=18

Now,

a*=++a/6+b++%6

Or,

a=12*(13/6+18%6)

Or,

a=12*(2+0)

Or,

a=24

Now, b=19

Answer:-

The value of a is 24 and b is 19.

Answered by Vyomsingh
1

GIVEN:

a=12 , b=18

________________________

To Find:-

a*=++a/6+b++ % 3

________________________

✏️✒️Solution:

➛ a*=++a/6+b++ % 3

➛a=12*(13/6+(18%3))

➛a=12*(2.0+2)

➛a=12*4.0

➛a=48.0 ❤️ ANSWER ❤️

________________________

Explaination:-

(Operators used in Syntax)

Assignment Operator(=)

To assign the Value in a and b.

Arithmetic Operators

(+) Addition of two values.

(/) Division of two Values.

(%)Modulus is used to find the Reminder.

Increament and Decreament Operator.

(++)This Operator increase the value of Variable by one.

(--)This Operator decrease the value of Variable by one.

Note:-

Increament and Decreament Operator are of two types:-

Pre or post Increament and Decreament Operator

Similar questions