Skip to content

Commit 0f981a7

Browse files
authored
Update Exercise_*3.1.java
1 parent 4712e67 commit 0f981a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Chapter 3/Exercise_*3.1.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,7 @@ else if (discriminant == 0) {
3838
else {
3939
System.out.println("The equation has no real roots");
4040
}
41+
42+
input.close();
4143
}
4244
}

0 commit comments

Comments
 (0)