7.6 * 5 % 2 as well as (7.6 * 5) % 2 aren't valid because
the %-operators left operand is of type double.
(int)(7.6 * 5) % 2 however will do because it first does type-casting, then %.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.