answersLogoWhite

0


Best Answer

area = base * height / 2;

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write algorithms for area of right angled triangle in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Algebra

How do you use the Pythagorean theorem?

The Pythagorean states that a2 + b2 = c2 for a right triangle, where a and b are the lengths of the legs of the right triangle, and c is the length of the hypotenuse (the diagonal side).Say you are given a triangle with legs of lengths 3 and 4, and need to find the length of the hypotenuse. You can write the equation32 + 42 = c2, where c is the length of the hypotenuse.This gives25 = c2, and taking the square root of both sides of the equation gives5 = c, so the length of the hypotenuses in this case is 5.Another example:Say you have a right triangle where the length of one leg is 12 and the length of the hypotenuse is 13, and you need to find the length of the other leg. You can write the equationa2 + 122 = 132, where a is the length of the unknown leg.Solving:a2 + 144 = 169a2 = 25a = 5, so in this case, the length of the unknown leg is 5.


Write a C algorithm to test whether the three numbers represent the sides of a right angle triangle?

1. sort desc, so a1 >= a2 >= a3 2. check if (a1*a1 == a2*a2 + a3*a3) then true


What is the area of a triangle with a base of 18m and a height of 20m?

The formula for the area of a triangle is, A = 1/2b x h, where b is base and h is height. A = 1/2(18m) x 20m = 180m2 Another way to write the formula for the area of a triangle is A = (b x h)/2, which gives the same answer. A = (18m x 20m)/2 = 180m2


What letter has both a right angle plus acute angle?

If you write it so the middle angle is a right angle, "K" fits the description.


How do you write 0.025 as a fraction in simplest form?

1/40 1/40 1/40 1/40 This is right Nick Knotts

Related questions

How far in studying mathematics would it take to write algorithms mathematically?

You can learn to write algorithms mathematically in high school


How can we write algorithms?

There is no systematic way to create algorithms; you basically have to think about the problem, and consider how you would go about to solve it.


What do you write when classifying triangles?

there is many ways to write when classifying a triangle, you can classify it by its sides or angles. When you classify it by angles you can classify it by acute, obtuse, and right triangle. when classyfing it by sides its isosceles, equilateral, and scalene!


How do you write algorithms of java programs?

Write a program that graphically demonstrates the shortest path algorithm


Write algorithms and draw a corresponding flow chart to convert a decimal number to binary equiavalent?

Write algorithms and draw a corresponding flow chart to convert a decimal number to binary equivalent?


How do you write and simplify an expression of a right triangle base20 height x-6?

26


Write an argument to show that an equilateral triangle cannot have a right?

An equilateral triangle is a triangle where all sides are the same length and all three angles are the same. The sum of the angles of a triangle is 180 degrees. 180 ÷ 3 = 60


Can you draw a right angled equilateral triangle?

No. That can be proven in this way, accepting the truth of the Pythagorean Theorem, which says that the square of the length of the hypotenuse, c, of a right triangle with orthogonal sides a and b, will always be equal to the sum of the squares of the lengths of sides a and b. If c is the length of side c, and so on, the Pythagorean Theorem stated above becomes this mathematical statement: c2 = a2 + b2 One way to test a hypothesis is to express the assumed case, apply logic steps to it, and examine the truth of the result. So if we assume for argument that our right triangle is equilateral, and assign length xequally to all three sides--a, b, & c--we could write the equation thus: x2 = x2 + x2 which becomes x2 = 2(x2) Factoring out x2, we get 1 = 2 We've arrived at a mathematical contradiction, disproving our assumption. There cannot be right-angled equilateral triangles.


How do you figure the measurements of the sides of a right triangle?

The three sides of a right triangle are represented by the variables a, b, and c. The variable calways represents the longest side. You can write the formula used above as . a-squared+ b-squared= c-squared


Can a write triangle be equilateral?

No


Write a C plus plus function that print a triangle of stars?

Write a function that print a triangle of stars.


Write about the qualities of good line drawing algorithms?

the line must be thick and not made from thread