Computer Science, asked by crockroakz, 1 year ago

write a program in java to calculate the area and perimeter of a right angled triangle​

Answers

Answered by sneha9719
2

Answer:

I hope for this question is helpful for you

Explanation:

JAVA

1.public class top.

2.{ public static void main (String args[])

3. { float b, h, area;

4. b = 5 ;

5. h =8;

6.area = ( b * h ) / 2;

7.System.out.println("Area of Right Angle Triangle is :"+area);

8.}}

Similar questions