C program to calculate area of right angled triangle




















A branch of mathematics, known as trigonometry is based on right triangles. Most of the properties and formula of trigonometry is based on ratio and proportions of sides and angles of right triangle like Sine, Cosine, Tangent etc.

Area of Right angled Triangle If we know the length of base and perpendicular of a right angled triangle, then we can use below mentioned formula to find the area of a right triangle. If we know the length of hypotenuse and altitude of a right triangle, then we can use below mentioned formulae to find area of a right triangle. Where, Altitude is the perpendicular distance between hypotenuse and vertex containing right angle vertex opposite of hypotenuse.

In the following program, we will calculate the area of a right angles triangle using the above formula in which length of base and perpendicular is know. In next line, it calculates the area of right triangle using above formula and stores the area in a floating point variable. Finally it prints the area of right triangle on screen using printf function.

C Program to find Factors of a Number. C Program to Find Factorial of a Number. C Program to Check Neon Number. C Program to Check Perfect Number. C program to Reverse a Number. C Program to Swap Two Numbers. C Program to find the Sum of First n Natural numbers. C Program to Check Strong Number. Compiler Design. Computer Organization. Discrete Mathematics. Ethical Hacking. Computer Graphics. Software Engineering. Web Technology.

Cyber Security. C Programming. Control System. Data Mining. Data Warehouse.



0コメント

  • 1000 / 1000