answersLogoWhite

0

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

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach

Add your answer:

Earn +20 pts
Q: Javascript code for the area of a triangle?
Write your answer...
Submit
Still have questions?
magnify glass
imp