Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Suntcoliniare (a,b,c):
- if (c[1]- a[1]) / (b[1] - a[1]) == (c[0] - a[0]) / (b[0] - a[0]):
- return True
- else:
- return False
- def citire():
- x=int(input("Introdu coordonata x:"))
- y=int(input("Introdu coodonata y:"))
- p=(x,y)
- return p
- a=citire()
- print(a)
- b=citire()
- print(b)
- c=citire()
- x=Suntcoliniare (a,b,c)
- print(x)
Add Comment
Please, Sign In to add comment