View Code of Problem 68

import java.util.Scanner;

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

        while (in.hasNext()) {

            Integer a= in.nextInt();
            Integer b= in.nextInt();
            Integer b= in.nextInt();
            Integer max=a>b?a:b;
            System.out.println(c>max?c:max);

        }



    }


}

/*
Main.java:11: error: variable b is already defined in method main(String[])
            Integer b= in.nextInt();
                    ^
Main.java:13: error: cannot find symbol
            System.out.println(c>max?c:max);
                               ^
  symbol:   variable c
  location: class Main
Main.java:13: error: cannot find symbol
            System.out.println(c>max?c:max);
                                     ^
  symbol:   variable c
  location: class Main
3 errors
*/

Double click to view unformatted code.


Back to problem 68