Given that the area of a right-angled triangle is X times its base b. The task is to find the height of the given triangle.
Input: X = 40
Input: X = 100
Approach: We know that the area of a right-angled triangle, Area = (base * height) / 2 and it is given that this area is X times the base i.e. base * X = (base * height) / 2.
Solving for height, we get height = (2 * base * X) / base = 2 * X.
Below is the implementation of the above approach:
- Minimum height of a triangle with given base and area
- Program to find area of a triangle
- Find the altitude and area of an isosceles triangle
- Find area of triangle if two vectors of two adjacent sides are given
- Find all sides of a right angled triangle from given hypotenuse and area | Set 1
- C++ program to find all numbers less than n, which are palindromic in base 10 and base 2.
- Given a number N in decimal base, find number of its digits in any base (base b)
- Maximum height when coins are arranged in a triangle
- Area of Reuleaux Triangle
- Check if right triangle possible from given area and hypotenuse
- Area of Circumcircle of a Right Angled Triangle
- Area of Incircle of a Right Angled Triangle
- Area of a triangle inside a parallelogram
- Maximum area of triangle having different vertex colors
- Area of a largest square fit in a right angle triangle
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.