r/javahelp • • Mar 27 '21

Solved 1%2=1?

i dontunderstand the results when the nr to the right is larger

ofc 4%3=1

but why 3%4=3

2 Upvotes

13 comments sorted by

View all comments

17

u/MyNameIsRichardCS54 Mar 27 '21 edited Mar 27 '21

3 / 4 = 0 remainder 3