// FindMaxV1.java
// Aaron Tan
//
// To find the maximum among values of three integer variables.

import java.util.*;

class FindMaxV1 {
 
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.print("Enter 3 values: ");
        int num1 = scanner.nextInt();
        int num2 = scanner.nextInt();
        int num3 = scanner.nextInt();

        int max = 0;
        if (num1 > max)
            max = num1;
        else if (num2 > max)
            max = num2;
        else if (num3 > max)
            max = num3;

        System.out.println("Max = " + max);
    }

}


