Java Android Kotlin OOP

Wednesday, 3 January 2018

Write a program to find area of right angled triangle in C C++ language

A triangle is called right angled triangle if its one angle is 90 degree.There is no restriction on angle side or name.90 degree angle may be first, second or third.Other two angles might have same or different degree.To calculate area of right angles triangle
base and height must be known.
 
C Code



C++ Code


Working of Program:
 After the above program is executed user need to input base and height respectively.These two values will be stored in b and h variables.And then area will be calculated and stored in area variable.At last produced value will be displayed to the user.
Output:

,