answersLogoWhite

0

You define a function with an return value. The return value would be the area of the triangle, and the parameters are the width/length and height of the triangle. Inside the function you would define how you would calculate the area, and then return the result.

User Avatar

Wiki User

7y ago

What else can I help you with?

Related Questions

How you find the area of a triangle?

To find the area of a triangle, you have to multiply the base of the triangle and the height of the triangle, then divide the product of those numbers by two.


How do you find the area and perimiter of a triangle?

To find the area of a triangle find the base and the height of the triangle. Then multiply the base by the height, then divide by 2. To find the perimiter of a triangle add together the outside edge of the triangle. To find the area of a triangle find the base and the height of the triangle. Then multiply the base by the height, then divide by 2. To find the perimiter of a triangle add together the outside edge of the triangle.


Do you have to miltiply to find the area of a triangle?

In order to find the area of a triangle, you need to multiply the base of the triangle with the height of the triangle and then halve your final answer.The formula is (Base x Height) / 2Using that, the area of a triangle can be found.Hope that helps.Jamz159


How would you find out the sin tan and cos of right angle triangle?

sin, tan and cos can be defined as functions of an angle. But they are not functions of a triangle - whether it is a right angled triangle or not.


How do you find th area of triangle?

Area of a triangle = 0.5*base*perpendicular height


What are the rules used to find the area of a triangle?

To find the area of a triangle you - Half the base then times it by the height ! Alisha xx


Find the area of the triangle 4inch tall 3.2 base?

Find the area of the triangle 4inch tall 3.2 base


How do you find the perimeter of a right angled triangle using the area?

how to find the perimeter of a right angled triangle using the area


How do you find the area of a triangle given the area of the other triangle?

A= 1/2(b)(h)


How do you find the are of a triangle?

Area of a triangle = 1/2*base*height


How do you find the area if you have a right angle triangle with all the mesurements?

To find the area of a right triangle, you can use the formula A = 0.5 * base * height, where the base and height are the two sides that form the right angle. Alternatively, you can use the Pythagorean theorem to find the lengths of the sides if they are not given, and then use the formula mentioned earlier. Another method is to use trigonometric functions such as sine, cosine, or tangent to find the area based on the given angle and side lengths.


How do find area of triangle?

1/2bh b=base h=height To find the are of a triangle,you have to multiply the base times height and divide the answer by 2. To find the area of a triangle you need to multiply all the sides of the triangle and then divide by 2.