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"); } } }
1 Respuesta
+ 2
Help