Compare commits

..

No commits in common. "896fc1f4d4d9f0cb53d1c9556e50288dd7b1eceb" and "74a44852afafd2b0e63885a1cdd2989ccdb150bb" have entirely different histories.

3 changed files with 2 additions and 5 deletions

2
.gitignore vendored
View File

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

View File

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

View File

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