2

I have a program with the following line of code in it

if (counter % 2 == 1){

and OClint is giving me the warning "broken oddness check", which from the documentation states that it won't work for negative numbers, which I understand, but the solutions it gave me was to use

if (counter % 2 != 0){

which then gives me an "inverted logic warning" and tells me to use the first code again... I'm not sure what I'm supposed to do here. Thanks!

walnut
  • 21,629
  • 4
  • 23
  • 59
William
  • 81
  • 5

0 Answers0