1
#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 that, I never get certain results from nondivisible numbers
Thank you! It worked right here! Thank you very much
– Klaus Malone