0
 int x=4;
 double y=  841/++x%10/2+15/(x++/3.0);

 System.out.println("y = " + y);

why is the answer 13? why is ++x = 6 and x++ = 7?? Thanks a lot. I'm so new to Java. Isn't it x=4 , ++x=5 x++=6 ? how is it 6 and 7.

0 Answers0