From ae042010a6583fc4d59d839bc413eccf69ff6de3 Mon Sep 17 00:00:00 2001 From: dymik739 Date: Tue, 2 May 2023 18:48:21 +0300 Subject: [PATCH] remove duplicate string to fix calculations --- src/Lab2.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Lab2.java b/src/Lab2.java index 1dceee0..f83ef1d 100644 --- a/src/Lab2.java +++ b/src/Lab2.java @@ -107,7 +107,6 @@ public class Lab2 { valueRepeats = true; } } - sum += tmpSmallest; if (!valueRepeats) { sum += tmpSmallest;