Example:
int value = 2 * (height + width); System.out.println("perimeter: " + value); value = height * width; System.out.println("area: " + value);