Posts by Jonas Antonio • 11 points
1 post
-
1
votes1
answer31
viewsA: this algorithm is to verify divisor
If A divides B, the rest of the division of A by B is zero, i.e. a%b == 0. Just do: if(resto == 0) printf("\n%d é divisor de %d!",n1,n2); else printf("\n%d não é divisor de %d!",n1,n2)…