0

You are an administrator at a football club who must categorize already played games on the team's website. The given program t

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 (ourScore > theirScore) { System.out.println("Won"); } if (isSuspended ) { System.out.println("Suspended"); } else if (ourScore < theirScore) { System.out.println("Lost"); } else { System.out.println("Draw"); } } }

5th Apr 2021, 9:37 PM
WILMER MATEO
WILMER MATEO - avatar
1 Réponse
+ 2
Help
5th Apr 2021, 9:37 PM
WILMER MATEO
WILMER MATEO - avatar