Advertisement
fellpz

EDivisivel

Apr 6th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. int EDivisivel(int a, int b){
  3. if (a%b)
  4. return 0;
  5. else
  6. return 1;
  7. }
  8.  
  9. int main ()
  10. {
  11. int numa, numb;
  12. printf ("\nEntre com dois numeros\n");
  13. scanf ("%d",&numa)
  14. scanf ("%d",&numb);
  15. if (EDivisivel(numa, numb))
  16. printf ("\n\nOs numeros sao divisiveis.\n");
  17. else
  18. printf ("\n\nOs numeros nao sao divisiveis.\n");
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement