I am trying to use the modulus operator to see if the remainder of the result of two numbers being divided is zero and I get the error "invalid operands to binary" on this line of code:
Could someone point me in the direction of my error? I looked up the modulus operator on this site and It wasnt of much help for this problem.Code:if(prime % div == 0)
Oh and I am using Dev-C++



LinkBack URL
About LinkBacks



