Advertisement
DerioFT

1115.py

Oct 26th, 2021
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. while True:
  2.  
  3.     X, Y = input().split()
  4.     X, Y = int(X), int(Y)
  5.  
  6.     if X == 0 or Y == 0:
  7.         break
  8.  
  9.     if X > 0 and Y > 0:
  10.         print("primeiro")
  11.  
  12.     if X > 0 and Y < 0:
  13.         print("quarto")
  14.  
  15.     if X < 0 and Y > 0:
  16.         print("segundo")
  17.  
  18.     if X < 0 and Y < 0:
  19.         print("terceiro")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement