Area of any triangle: 0.5*base*perpendicular height
You don't need a program; the formula is b*h/2.
The area of a triangle can be calculated with one main formula. That is, A=(b*h)/2, where A is the area of the triangle, b is the base of the triangle, and h is the height of the triangle.
half base multiply height. 1/2BasexHeight
Area = 1/2*base*perpendicular height.
Area of any triangle: 0.5*base*perpendicular height
You don't need a program; the formula is b*h/2.
{A program to compute the area of a triangle} {by Ogboin W. Meshach} Var; b,h:real; BEGIN Writeln('Triangle'); Write('Base: '); Readln(base); Write('Height: '); Readln(height); area:=0.5*base*height; Writeln('Area: ', area :0:2); End.
Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }
Write a program that calculates the area of a triangle in QBASIC
#include <stdio.h> main() { int r,b,h; printf("Enter the value of Base and Hight"); scanf("%d%d",&b,&h); r = ((b*h)/2); printf("Area of Triangle=%d",r); }
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!
give an example of calculation of mathematics
26
The perimeter of a triangle does not provide sufficient information to calculate its area.
There is insufficient information to calculate the area.
The area of a triangle can be calculated with one main formula. That is, A=(b*h)/2, where A is the area of the triangle, b is the base of the triangle, and h is the height of the triangle.