The area of a triangle is one half base times height, so you would write a program to input the base and height, giving the option to stop, calculating and printing the area, and then looping to repeat as desired.
To find the area of a triangle you first need to know the base and height:
double area_of_triangle (double base, double height) {
return base * height / 2;
}
If we don't know the height, then we need to know the length of any two sides and the included angle. Using standard notation where the sides are labelled a, b and c and their opposing angles as A, B and C, given sides a, b and angle C where a is the base, the height is calculated as b * sin (C):
#include<math.h> // sin() function
double area_of_triangle2 (double a, double b, double C) {
return a * b * sin (C) / 2;
}
Write a program that calculates the area of a triangle in QBASIC
Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }
write a vb program to find the magic square
Write a program to find the grade obtained by the students of a class
what is if(!(str[i]==32))
Write a program that calculates the area of a triangle in QBASIC
find the area of abc a[2,3] c[6,0]
Write a c program to compute the surface area and volume of a cube
Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }
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.
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.
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
Area of a triangle = 0.5*base*perpendicular height
how to find the perimeter of a right angled triangle using the area
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
A= 1/2(b)(h)