-1
this algorithm is to check if the first is splitter of the second and at the end show whether it is splitter or not splitter, no error, but do not know how to continue
#include <stdio. h> #include <conium. h> int main() { int n1,N2,rest,res;
printf (" Type a number:"); scanf ("%d", &n1);
printf (" Type a number:"); scanf ("%d", &N2);
res = n1 / N2; rest= n1%N2;
printf(" nResulted from %d / %d = %d. n",n1,N2,res);
getch(); Return(0); }
Hi Eleny, I believe the way you asked the question doesn’t fit Sopt’s question protocols. Have a look https://answall.com/help/how-to-ask, it might help. and make it easier to answer your question.
– Paulo.Fritsch
Appendage
if (n1 % n2 == 0)
 printf(%d é divisor de %d\n", n2, n1);
else
 printf(%d não é divisor de %d\n", n2, n1);

– anonimo
Attention just what you posted:
verificar se o primeiro é divisor do segundo
, in this case reversedn1
andn2
because the answer above is whethern2
is or is not a divisor ofn1
.– anonimo