Advertisement
Guest User

Kenan

a guest
Feb 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.32 KB | None | 0 0
  1. while True:
  2.     print("""
  3.    Ucbucaqli yoxsa Dordbucaqli?
  4.    1.Ucbucaqli
  5.    2.Dordbucaqli
  6.    """)
  7.     secim=input("Seciminiz edin:\n")
  8.     if secim=="1":
  9.         teref_1=int(input("Teref-1:\t"))
  10.         teref_2=int(input("Teref-2:\t"))
  11.         teref_3=int(input("Teref-3:\t"))
  12.         teref_1=abs(teref_1)
  13.         teref_2=abs(teref_2)
  14.         teref_3=abs(teref_3)
  15.         if (teref_1<teref_2+teref_3 and teref_2<teref_3+teref_1 and teref_3<teref_1+teref_2):
  16.             if (teref_1==teref_2 and teref_2==teref_3):
  17.                 print("Beraberterefli Ucbucaqdir")
  18.             elif (teref_1==teref_2 and teref_2!=teref_3):
  19.                 print("Beraberyanli Ucbucaqdir")
  20.             elif (teref_1==teref_3 and teref_2!=teref_3):
  21.                 print("Beraberyanli ucbucaqdir")
  22.             elif (teref_2==teref_3 and teref_2!=teref_1):
  23.                 print("Beraberyanli ucbucaqdir")
  24.         else:
  25.             print("Bele ucbucaq movcud deyil")
  26.     elif secim=="2":
  27.         teref_1=int(input("Teref-1:\t"))
  28.         teref_2=int(input("Teref-2:\t"))
  29.         teref_3=int(input("Teref-3:\t"))
  30.         teref_4=int(input("Teref-4:\t"))
  31.         if (teref_1==teref_2 and teref_2==teref_3 and teref_3==teref_4):
  32.             print("Kvadratdir")
  33.         else:
  34.             print("Dordbucaqlidir")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement