1 / 1100%
import java.util.Scanner;
public static void main (String[] args)
{
Scanner in = new Scanner(System.in);
System.out.print("Please enter the wall width: ");
int width = in.nextInt();
System.out.print("Please enter the wall height: ");
int height = in.nextInt();
System.out.print("Please enter the number of windows: ");
int windows = in.nextInt();
double area = (width * height) - (windows * 6);
System.out.println("Area: " + area);
}
}
Powered by TCPDF (www.tcpdf.org)
public class WallArea
{
Students also viewed