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){