Answer:
Written in Python
print("Enter three sides of a triangle: ")
length = []
for i in range(0,3):
inp = int(input(""))
length.append(inp)
length.sort()
if length[1]+length[2] > length[0] and length[0] + length[2] > length[1] and length[0] + length[1] > length[2]:
print("Triangle")
if length[2]**2 == length[0]**2 + length[1] **2:
print("Right Angled")
else:
print("Not Right Angled")
else:
print("Not Triangle")
Step-by-step explanation:
This line prompts user for sides of triangle
print("Enter three sides of a triangle: ")
This line declares an empty list
length = []
The following iteration gets user input
for i in range(0,3):
inp = int(input(""))
length.append(inp)
This line sorts user input
length.sort()
The following if condition checks if user input is triangle
if length[1]+length[2] > length[0] and length[0] + length[2] > length[1] and length[0] + length[1] > length[2]:
The following is executed is the if condition is true
print("Triangle")
The following if condition checks if user input forms a right angled triangle
if length[2]**2 == length[0]**2 + length[1] **2:
print("Right Angled")
else:
print("Not Right Angled")
This is executed if user input is not a triangle
else:
print("Not Triangle")
4(3x + 1)
What is the answer to 4(3x + 1)
Answer:
Answer is 12x+4. Hope that helped.
the first 5 multiples of 18 after 0 are?
Answer:
18,36,54,72,90 are first five multiples of 18
Step-by-step explanation:
Answer:
18,36,54,72,90
Step-by-step explanation: