Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- print("""
- Ucbucaqli yoxsa Dordbucaqli?
- 1.Ucbucaqli
- 2.Dordbucaqli
- """)
- secim=input("Seciminiz edin:\n")
- if secim=="1":
- teref_1=int(input("Teref-1:\t"))
- teref_2=int(input("Teref-2:\t"))
- teref_3=int(input("Teref-3:\t"))
- teref_1=abs(teref_1)
- teref_2=abs(teref_2)
- teref_3=abs(teref_3)
- if (teref_1<teref_2+teref_3 and teref_2<teref_3+teref_1 and teref_3<teref_1+teref_2):
- if (teref_1==teref_2 and teref_2==teref_3):
- print("Beraberterefli Ucbucaqdir")
- elif (teref_1==teref_2 and teref_2!=teref_3):
- print("Beraberyanli Ucbucaqdir")
- elif (teref_1==teref_3 and teref_2!=teref_3):
- print("Beraberyanli ucbucaqdir")
- elif (teref_2==teref_3 and teref_2!=teref_1):
- print("Beraberyanli ucbucaqdir")
- else:
- print("Bele ucbucaq movcud deyil")
- elif secim=="2":
- teref_1=int(input("Teref-1:\t"))
- teref_2=int(input("Teref-2:\t"))
- teref_3=int(input("Teref-3:\t"))
- teref_4=int(input("Teref-4:\t"))
- if (teref_1==teref_2 and teref_2==teref_3 and teref_3==teref_4):
- print("Kvadratdir")
- else:
- print("Dordbucaqlidir")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement