Richard_Sekol

R1.14.

Sep 18th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public class Test2 {
  2. public static void main(String[] args)
  3. {
  4. int wallDimensions = X * X * 4;
  5. int numberOfDoors = X;
  6. int numberOfWindows = X;
  7. int sizeOfDoor = X * X * numberOfDoors;
  8. int sizeOfWindows = X * X * numberOfWindows;
  9. System.out.println(wallDimensions - sizeOfDoor - sizeOfWindows);
  10.  
  11.  
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment