The program you are given takes length and width of a rectangle as input.
Complete the method to take them as parameters, then calculate and output the area of the rectangle.
Sample Input
4
5
Sample Output
20
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
int width = read.nextInt();
int height = read.nextInt();
printArea(width, height);
}
//complete the method
public static void printArea(int width, int height) {
int area=width*height;
System.out.println(area);
}
}



