Computer Science, asked by kksashi5, 18 hours ago

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.

Use The triangle is equilateral. and The triangle is not equilateral. as your final outputs.
An example of the program inputs and output is shown below:

Enter the first side: 2
Enter the second side: 2
Enter the third side: 2

The triangle is equilateral.

Answers

Answered by sahilrasam0709
0

Answer:

please make my answer brainliest

Attachments:
Answered by jayaharish2003
0

Answer:

The answer is given below

Explanation:

Assuming the programming language to be python

x=float(input("Enter the length of the 1st side of the triangle"))

y=float(input("Enter the length of the 2nd side of the triangle"))

z=float(input("Enter the length of the 3rd side of the triangle"))

if x==y and y==z and z==x:

     print("The triangle is equilateral")

else:

      print("The triangle is not equilateral")

Similar questions