Computer Science, asked by garimajp82007, 8 months ago

If x=3 and y=4, evaluate: (a) z=++x * --y (b) x++ % y++
in java

Answers

Answered by anshu5296
1

Answer:

a) 12

b)0

..........

Explanation:

. b BBC .

Answered by SpaceWalker17
1

\large\underline{\underline\mathsf\red{JAVA\:EXPRESSIONS}}

If x = 3 and y = 4

\bold{1. z= ++x*--y}

\bold{\leadsto z = (3+1)*3}

\bold{\leadsto z = 4*3}

\bold{\leadsto z = 12}

  • x = 3 and y = 4

2. x++ % y++

\bold{\leadsto}3%4

\bold{\leadsto}1

Similar questions