Computer Science, asked by jiyathakuri12, 9 months ago

write a JavaScript code to input the length of three sides of a triangle and display it is equal literal triangle or not​

Answers

Answered by rishabhdasxe265
1

Answer:

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")

Similar questions