Java Program to find area of Right-angled triangle

Get length and width of right angled triangle and find area of right angled triangle

Sample Input 1:

4 5

Sample Output 1:

10

Program or Solution

				
			
					
			
				
			

Program Explanation

Get length and breadth of a right angled triangle (using scanner class) Calculate area by dividing product of length and breadth by 2 (area = length * breadth/2) print area (using system.out.println)

Tech Events

Hackathon