Computer Science, asked by realarpitrajan, 1 year ago

computer
show result In scanner class

Attachments:

Answers

Answered by prakhargurunani
0

def equilateral():

   print("[+] Enter sides in 'cm' only.")

   x = int(input("Enter side 1: "))

   y = int(input("Enter side 2: "))

   z = int(input("Enter side 3: "))

   if x == y or y == z or z == z:

       print("This is an isocles triangle !")

   elif x == y and y == z and x == z:

       print("This is an equilateral triangle !")

   else:

       print("Oops ! an error occured.")

while True:

   equilateral()


prakhargurunani: This is a python program
prakhargurunani: Install python from python org. Save the above code as a .pyc file and then open the file.
realarpitrajan: no thanks but i wanted it in java lanh
realarpitrajan: lang
prakhargurunani: ok
realarpitrajan: can u do so
prakhargurunani: no. I only program in python.
realarpitrajan: no problem
Similar questions