Nathan Coulas

CCC '07 J1 - Who is in the Middle?

ccc07j1 JAVA8 04 Nov, 2019 0.781s 3 points

Source Code

import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        byte[] bowls = {in.nextByte(), in.nextByte(), in.nextByte()};
        Arrays.sort(bowls);
        System.out.println(bowls[1]);
    }
}