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.
The triangle is not equilateral.
Answers
Answered by
9
Answer:
Hope it helps!! Mark this answer as brainliest if u found it useful and follow me for quick and accurate answers...
Explanation:
Attachments:
Answered by
7
side1 = int(input("Enter the length of first side of a triangle: "))
side2 = int(input("Enter the length of second side of a triangle: "))
side3 = int(input("Enter the length of second side of a triangle: "))
if side1 == side2 == side3 :
print ("The triangle is equilateral.")
else :
print ("The triangle is not equilateral")
hope it helps
I have shown pictures of how the output would show if you run this program.
If you like this answer mark me as brainliest
Attachments:
Similar questions