Skip to content

Commit 5cd82e4

Browse files
committed
Added question 2 to tester14
1 parent 3b4b806 commit 5cd82e4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Testers/ממן14/Tester.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,15 @@ public static void main(String[] args) {
2727
System.out.println(GOOD);
2828
else
2929
System.out.println(BAD);
30+
31+
/* Question 2 */
32+
System.out.println("Question 2: ");
33+
boolean biggestEvenSum = (ex14.what(arr) == 12) && (ex14.what(arr2) == 8) && (ex14.what(arr3) == 8) &&
34+
(ex14.what(arr4) == 7) && (ex14.what(arr7) == 20);
35+
if(biggestEvenSum)
36+
System.out.println(GOOD);
37+
else
38+
System.out.println(BAD);
39+
3040
}
3141
}

0 commit comments

Comments
 (0)