View Code of Problem 68

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int[] a = new int[3];
		for (int i = 0; i < 3; i++) {
			a[i] = scanner.nextInt();
		}
		System.out.print(Math.max(a[0], Math.max(a[1], a[2])));
	}

}

Double click to view unformatted code.


Back to problem 68