ematthewsjr602 ematthewsjr602
  • 10-11-2020
  • Computers and Technology
contestada

Write a program that accepts the lengths of three sides of a triangle as inputs. The program output should indicate whether or not the triangle is an equilateral triangle.

Respuesta :

Cytokine
Cytokine Cytokine
  • 10-11-2020

sides = ([])

i = 0

while i < 3:

   side = float(input("Enter the length of one side: "))

   sides.append(side)

   i += 1

if sides.count(sides[0]) == 3:

   print("Your triangle is an equilateral triangle.")

else:

   print("Your triangle is not an equilateral triangle.")

I hope this helps!

Answer Link

Otras preguntas

What is the momentum of a 52 kg carton that slides at 5.0m/s across an icy surface?
a rational number between 1.7 and 1.8
The total cost of renting a car is $30.00 for each day the car is rented plus 28 1/2 ¢ for each mile the car is driven. What is the total cost of renting the ca
If the atmosphere is like a greenhouse, what parts of it function as the "glass"?
The total cost of renting a car is $30.00 for each day the car is rented plus 28 1/2 ¢ for each mile the car is driven. What is the total cost of renting the ca
What is a hook in the first paragraph of an essay
What is the acceleration of a 6.4 kilogram bowling ball if a force of 12 N is applied to it?
How much force is needed to accelerate a 68 kilogram-skier at a rate of 1.2 m/sec^2?
22 is what percent more than 20?
Find the least common multiple of 22, 44, and 264.