#include <stdio.h>
#include "funcao.h"
int main () {
int a, b;
printf("Escreva os valores de a e b ");
scanf("%d", &a);
scanf("%d", &b);
if (EDivisivel (a,b))
printf("sao divisiveis");
else
printf("nao sao divisiveis");
return (0);
}
/ * function is down here: * /
#include <stdio.h>
int EDivisivel (int a, int b) {
if (a%b)
return 1;
else
return 0;
}
From this, I never get certain results from non-divisible numbers