import java.util.Scanner;
class AreaOfRectangle
{
public static void main(String args[])
{
Scanner s= new Scanner(System.in);
System.out.println("Enter the length:");
double l= s.nextDouble();
System.out.println("Enter the width:");
double b= s.nextDouble();
double area=l*b;
System.out.println("Area of Rectangle is: " + area);
}
}
Output:
Enter the length:
10
Enter the width:
10
Area of Rectangle is: 100