SyntaxFix
Write A Post
Hire A Developer
Questions
Use the modulus operator %, it returns the remainder.
%
int a = 5; int b = 3; if (a % b != 0) { printf("The remainder is: %i", a%b); }