triangle - Hightechrobo Bin
  PYTHON   64

triangle

Guest on 27th November 2021 06:09:08 AM

  1. x=[float(input("enter a number ")),float(input("enter a number ")),float(input("enter a number "))]
  2.  
  3.  
  4. if x[0] == x[2] or x[2] == x[1] or x[0] == x[2]  and x[1] != x[0] != x[2]:
  5.     print("its a isosceles")
  6. elif x[0] == x[1] == x[2] :
  7.     print("its a equality ")
  8. else:
  9.     print("its scalene")

Raw Paste


Login or Register to edit or fork this paste. It's free.