Computer Science, asked by venkataramanablr2020, 3 days ago

Write a Python program to check if a triangle is equilateral, isosceles or scalene. Go

to the editor

Note :

An equilateral triangle is a triangle in which all three sides are equal.

A scalene triangle is a triangle that has three unequal sides.

An isosceles triangle is a triangle with (at least) two equal sides.

Expected Output:

Input lengths of the triangle sides:

x: 6

y: 8

z: 12

Scalene triangle in python program






please do help me with this now only​

Answers

Answered by redracoon
10

print("Input lengths of the triangle sides: ")

x = int(input("x: "))

y = int(input("y: "))

z = int(input("z: "))

if x == y == z:

print("Equilateral triangle")

elif x==y or y==z or z==x:

print("isosceles triangle")

else:

print("Scalene triangle")

Pls mark as brainliest if you liked it

tq

Answered by puneet1230
2

print("Input lengths of the triangle sides: ")

x = int(input("x:"))

y = int(input("y:"))

z = int(input("z:"))

if x == y == z:

print("Equilateral triangle")

elif x==y or y==z or z==x:

print("isosceles triangle")

else:

print("Scalene triangle")

Input lengths of the triangle sides:

x:6

y:8

z:12

Scalene triangle

Attachments:
Similar questions