From 5606a8de0a3cb4a19a86f63136d057d60b75b25b Mon Sep 17 00:00:00 2001 From: = Date: Thu, 27 Aug 2020 20:31:49 +0800 Subject: [PATCH] update Java/Maths/PrimeFactorization.java --- Maths/PrimeFactorization.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Maths/PrimeFactorization.java b/Maths/PrimeFactorization.java index a488bf8e..bba2057d 100644 --- a/Maths/PrimeFactorization.java +++ b/Maths/PrimeFactorization.java @@ -11,6 +11,7 @@ public class PrimeFactorization { int n = scanner.nextInt(); System.out.print(("printing factors of " + n + " : ")); pfactors(n); + scanner.close(); } public static void pfactors(int n){