IvoSilva

[PROG1] Ficha 7 | Exercício 4

Nov 26th, 2011
225
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 main ()
  3. {
  4.     int x , y ;
  5.     printf ("Insira dos valores: ") ;
  6.     scanf ("%d %d" , &x , &y) ;
  7.     if (x > y) printf ("Endereco do maior %d e conteudo %d\n" , &x , x) ;
  8.     else if (x < y) printf ("Endereco do maior %d e conteudo %d\n" , &y , y) ;
  9.     else if (x == y) printf ("Números com valores iguais\n") ;
  10.     return 0 ;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment