Math, asked by Arjun2707, 6 months ago

What will be the output of the following code      [2]

          int Y=3,Z=5;

         Y=   Z ;

         

         int m= Y*++Y;

        System.out.println(m);                           

18

15

36

30​

Answers

Answered by JuniorBrainly100
13

\huge\bold\green{❥❥Answer❥❥}

\huge\bold\red{❀30❀}

\huge\bold\pink{❀❀ExplAnation❀❀}

In first equation we knew y was 3 and z was 5.

Then in second y was equal to z.

this means that 2 was added to y for making it 5 as equal to z.

so,y=z

After that its given y × y+y.

and this can also be written as 5×5+5

so ,25+5

=30

Hence ur answers is 30.

hope it helped u buddy.

THANK YOU...

Similar questions