Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int EDivisivel(int a, int b){
- if (a%b)
- return 0;
- else
- return 1;
- }
- int main ()
- {
- int numa, numb;
- printf ("\nEntre com dois numeros\n");
- scanf ("%d",&numa)
- scanf ("%d",&numb);
- if (EDivisivel(numa, numb))
- printf ("\n\nOs numeros sao divisiveis.\n");
- else
- printf ("\n\nOs numeros nao sao divisiveis.\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement