Math, asked by percy2000000007, 3 months ago

if a=12,b=18; find the value of a*=++a/6 + b++ %3; evaluate the following expression .This comes in programming

Answers

Answered by Anonymous
2

Mark As Brainliest.

✅✅✅

Attachments:
Answered by dreamrob
0

Program:

public class HelloWorld

{

    public static void main(String []args)

    {

        int a = 12 , b = 18;

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

        System.out.print(a);

    }

}

Output:

24

Explanation:

a = 12 , b = 18

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

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

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

a = 12 * (2 + 0)

a = 12 * 2

a = 24

Attachments:
Similar questions