!6 == 6) evaluates to !TRUE or FALSE.
With all the things to learn in programming, why is this kind of trivia seen as important, though?
Not always needed, but logical expressions like this should be grouped by their own parenthesis:
!((13%7) == (24%9))