<html>
<head>
<script language="JavaScript">
function TriaAngle (base, height)
{
document.write("the area of the triangle is" +1/2*base*height)
}
</script></head>
<body>
<script language ="JavaScript">
var b=(prompt ("enter the base of the triangel"))
var h=(prompt ("enter the height of the triangle"))
TriaAngel (b,h)
</script ></body></html>
Chat with our AI personalities
Area of Equilateral Triangle A= S2 * (Root 3)/4, where A= Area of the triangle S= Side of the triangle.
Area of hexagon= Area of original triangle/10
you split your shape in half, (The rectangle and the triangle), by putting a line through it and then calculate the area of the rectangle and then calculate the area of the triangle, half the area of the triangle then add the area of the triangle and the rectangle together!Then you should have your answer!
The area of a triangle is (1/2) x (length of the base) x (height of the triangle). You ought to be able to handle it from this point.
The area of triangle is : 35.0