import java.util.Scanner; public class Demo1 { public static void main(String[] args) { Scanner input = new Scanner(System.in); double length, width, area; System.out.print("Enter length: "); length = input.nextInt(); System.out.print("Enter width: "); width = input.nextInt(); area = length * width; System.out.print(area); } }