Deras15

lista 2 - ex 16

May 15th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. int main ()
  3. {
  4.     int n1, n2, mult1, mult2;
  5.     printf ("Entre com dois numeros:");
  6.     scanf ("%d %d", &n1, &n2);
  7.     if (n1%n2==0 || n2%n1==0)
  8.         printf ("Os numeros sao multiplos entre si");
  9.     else
  10.         printf ("Os numeros nao sao multiplos entre si");
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment