AreaRectangle2
import java.util.*;
public class AreaRectangle2
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
int area, length, width;
System.out.print("Enter length: ");
length = scan.nextInt();
System.out.print("Enter width: ");
width = scan.nextInt();
area = length * width;
System.out.println("The area of the rectangle is " + area);
}
}
