Computer Science, asked by ashwarsingh024, 6 months ago

write a program in Java to display the input and height of a right angle triangle and display it's area​

Answers

Answered by SoulFulKamal
282

Question ⤵️

write a program in Java to display the input and height of a right angle triangle and display it's area.

Answer ⤵️

JAVA

  • public class top.

  • { public static void main (String args[])

  • { float b, h, area;

  • b = 5 ;

  • h =8;

  • area = ( b * h ) / 2;

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

  • }}

Hope it helps you ✌️⚡⚡⚡

Explanation:

please make me brainliest

Similar questions