Compare commits

..

2 Commits

Author SHA1 Message Date
Rhinemann 896fc1f4d4 Minor cleanup 2023-04-26 14:37:46 +03:00
Rhinemann 7fa667cb2d Changes 2023-04-26 14:34:13 +03:00
3 changed files with 5 additions and 2 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
Lab 1/Lab_1.class
Lab 2/Lab_2.class

View File

@ -23,6 +23,8 @@ public class Lab_1 {
b = input.nextInt();
} while (b > m);
input.close();
if ((a <= 0) && (n >= 0)) {
System.out.println("Error, division by zero, shutting down!");
System.exit(1);

View File

@ -1,5 +1,4 @@
import java.util.Scanner;
import java.util.Arrays;
public class Lab_2 {
@ -23,7 +22,7 @@ public class Lab_2 {
}
public static void main(String[] args) {
short a, rows = 0, columns = 0, width;
short a, rows = 0, columns = 0;
String format;
Scanner input = new Scanner(System.in);