Computer Science, asked by rakheekohli, 9 months ago

Write a python program to find the area of a triangle using the given formula.

Accept base and height from user. (area = ½(∗ ℎℎ)​

Answers

Answered by Intelligentcat
252

Answer:

\huge\underline{\overline{\mid{\bold{\pink{ANSWER-}}\mid}}}

The following codes must be typed in script mode, saved and then executed.

CODE 1:

s = float(input("Enter the length of the side of the triangle:"))

area = ((3)**(1/3)*(s**2))/4

print("The area of the triangle is", area)

OUTPUT:

Enter the length of the side of the triangle

CODE 2:

s = float(input("Enter the length of the side of the triangle:"))

print("The area of the triangle is", ((3)**(1/3)*(s**2))/4)

OUTPUT:

Enter the length of the side of the triangle

Similar questions