Can anybody help me with this code with nested loops?
Hi everybody, I'm trying to solved the match case and almost got it. According to SoloLearn, i've got the solution for 4/5 test cases. I can't think of what the 5. test case could be. I appreciate your help! import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner read = new Scanner(System.in); boolean isSuspended = read.nextBoolean(); int ourScore = read.nextInt(); int theirScore = read.nextInt(); // your code goes here if (isSuspended = true && ourScore > theirScore){ System.out.println("Suspended"); } else { if (ourScore < theirScore) System.out.println("Lost"); if (ourScore == theirScore) System.out.println("Draw"); if (ourScore > theirScore) System.out.println("Won"); } } }