Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test2 {
- public static void main(String[] args)
- {
- int wallDimensions = X * X * 4;
- int numberOfDoors = X;
- int numberOfWindows = X;
- int sizeOfDoor = X * X * numberOfDoors;
- int sizeOfWindows = X * X * numberOfWindows;
- System.out.println(wallDimensions - sizeOfDoor - sizeOfWindows);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment