[JAVA rookie] ask questions about the order of calculation

problems are shown in figure

clipboard.png

The expression on the way of

, shouldn"t it be like this

y+=((z--)/(PPx))

I remember
Zmuri-if the symbol is followed by the symbol, it should be self-decreasing after the calculation. PPx increases first and then participates in the operation
so shouldn"t it be 20 percent 1.5? why 21?

Apr.01,2021

because int 3 answer 2 = 1.

Menu