From 9cc6259105bc05931ce2195977806815ede7f87e Mon Sep 17 00:00:00 2001 From: shyshkin Date: Sun, 13 Jun 2021 15:29:42 +0200 Subject: [PATCH] The fourth error is the base instead of the height --- src/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.java b/src/Main.java index 4b93e162..8e348914 100644 --- a/src/Main.java +++ b/src/Main.java @@ -19,7 +19,7 @@ public static void main(String[] args) { System.out.println("Please input the height of the triangle (in inches)."); double height = input.nextDouble(); while (height <= 0) { - System.out.println("That's invalid. Please input the base of the triangle (in inches)."); + System.out.println("That's invalid. Please input the height of the triangle (in inches)."); base = input.nextDouble(); }