Advertisement
trds

cadrane

Nov 27th, 2020 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. def cadran(a):
  2.     if a[0]>0 and a[1]>0:
  3.         print("Este in cadran C1")
  4.     if a[0]<0 and a[1]<0:
  5.         print("Este in cadran C2")
  6.     if a[0]<0 and a[1]<0:
  7.         print ("Este in cadran C3")
  8.     if a[0]>0 and a[1]<0:
  9.         print ("Este in cadran C4")
  10.  
  11. def citire():
  12.     x=int(input("Introdu coordonata x:"))
  13.     y=int(input("Introdu coodonata y:"))
  14.     p=(x,y)
  15.     return p
  16.  
  17. a=citire()
  18. print(a)
  19.  
  20. cadran(a)
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement