Write A Program in java to find the area and perimeter of a right angled triangle by using function argument.Take perpendicular and base as inputs.
Answers
Answered by
1
Answer:
If we know the width and height then, we can calculate the area of a right angled triangle using the below formula. Area = (1/2) * width * height
Using Pythagoras formula, we can easily find the unknown sides in the right angled triangle. c² = a² + b²
The perimeter of a Right Angled Triangle is the distance around the edges. We can calculate the perimeter using the below formula. Perimeter = a + b+ c
Similar questions