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 Rectangle

Get length and breadth of rectangle and find area of rectangle

Sample Input 1:

4 5

Sample Output 1:


Program or Solution


Program Explanation

Get length and breadth of a rectangle (using scanner class) Calculate area by multiplying length and breadth (area = length * breadth) print area (using system.out.println)