Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def cadran(a):
- if a[0]>0 and a[1]>0:
- print("Este in cadran C1")
- if a[0]<0 and a[1]<0:
- print("Este in cadran C2")
- if a[0]<0 and a[1]<0:
- print ("Este in cadran C3")
- if a[0]>0 and a[1]<0:
- print ("Este in cadran C4")
- def citire():
- x=int(input("Introdu coordonata x:"))
- y=int(input("Introdu coodonata y:"))
- p=(x,y)
- return p
- a=citire()
- print(a)
- cadran(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement