From f476bfc80f50a999b2c86b251201891469d03917 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Thu, 2 Mar 2023 14:09:09 -0500 Subject: [PATCH] format --- Assignment 2/src/ca/cosc3p91/a2/util/Print.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assignment 2/src/ca/cosc3p91/a2/util/Print.java b/Assignment 2/src/ca/cosc3p91/a2/util/Print.java index bb406df..27e7398 100644 --- a/Assignment 2/src/ca/cosc3p91/a2/util/Print.java +++ b/Assignment 2/src/ca/cosc3p91/a2/util/Print.java @@ -181,12 +181,11 @@ public class Print { if (diff > 0) { int left = (int) Math.floor(diff / 2.0); + int right = (int) Math.ceil(diff / 2.0); int leftleft = (int) Math.floor(left / 2.0); int leftright = (int) Math.ceil(left / 2.0); - int right = (int) Math.ceil(diff / 2.0); - int rightleft = (int) Math.floor(right / 2.0); int rightright = (int) Math.ceil(right / 2.0);