IvoSilva

[PROG1] Ficha 1 | Exercício 3

Nov 20th, 2011
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2. main()
  3. {
  4.     int n1 , n2 ;
  5.     printf ("1º número? ");
  6.     scanf ("%d", &n1);
  7.     printf ("2º número? ");
  8.     scanf ("%d", &n2);
  9.     if (n1 % n2 == 0) printf ("É múltiplo !\n");
  10.     else printf ("Não é múltiplo !\n");
  11.     return 0 ;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment