lr13 -> task_1 -> e1-e14
This commit is contained in:
17
lr13/task_1/e14.java
Normal file
17
lr13/task_1/e14.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package lr13.task_1;
|
||||
|
||||
public class e14 {
|
||||
public static void m(int x) throws ArithmeticException {
|
||||
int h = 10 / x;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
int l = args.length;
|
||||
System.out.println("размер массива = " + l);
|
||||
m(l);
|
||||
} catch (ArithmeticException e) {
|
||||
System.out.println("Ошибка: Деление на ноль");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user