IvoSilva

[PROG1] Ficha 3 | Exercício 6

Nov 20th, 2011
145
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 x , y ;
  5.   printf ("Indique o ponto (x,y): ") ;
  6.   scanf ("%d %d" , &x , &y) ;
  7.   if (x > 0 && y > 0) printf ("1º Q !\n") ;
  8.   if (x < 0 && y > 0) printf ("2º Q !\n") ;
  9.   if (x < 0 && y < 0) printf ("3º Q !\n") ;
  10.   if (x > 0 && y < 0) printf ("4º Q !\n") ;
  11.   return 0 ;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment