View Code of Problem 68

import java.util.Scanner;

public class Main {

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

        int a, b, c;
        String input = sc.nextLine();
        String[] nums = input.split(" ");
        a = Integer.parseInt(nums[0]);
        b = Integer.parseInt(nums[1]);
        c = Integer.parseInt(nums[2]);
        int max = a > b ? a : b;
        max = max < c ? c : max;

        System.out.println(max);
    }
}

Double click to view unformatted code.


Back to problem 68