Decode School

Decode School - The School for Problem Solvers

Welcome to my blog. Subscribe and get my latest blog post in your inbox.

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:


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)