Compare commits
No commits in common. "896fc1f4d4d9f0cb53d1c9556e50288dd7b1eceb" and "74a44852afafd2b0e63885a1cdd2989ccdb150bb" have entirely different histories.
896fc1f4d4
...
74a44852af
|
@ -1,2 +0,0 @@
|
||||||
Lab 1/Lab_1.class
|
|
||||||
Lab 2/Lab_2.class
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue