Liberar recursos en condicionales
This commit is contained in:
1 parent
2e8c5cae24
commit
42ccb65310
3 files changed
+7
-2
No files matched your search
@@ -23,6 +23,7 @@ void main() {
|
||||
case '/':
|
||||
if (n2 == 0){
|
||||
System.out.println("Imposible dividir entre 0");
|
||||
sc.close();
|
||||
return;
|
||||
}
|
||||
result = n1 / n2;
|
||||
|
||||
Reference in new issue
Block a user