title: Write an application that inputs three integers from the user and displays the sum, average, product, smallest and largest of the numbers
body: <p>I'm getting the sum, average and the product. The real difficulty I am facing is with the smallest and the largest number. </p>
  
  <p>I can do it with two numbers, but three numbers is not making any sense to me. Ask me if my question isn't clear or if its not making sense.</p>
  
  <pre><code>import java.util.Scanner;
  
  // exercise 2.17
  public class ArithmeticSmallestLargest {
  
      public static void main(String[] args) {
  
          Scanner input = new Scanner(System.in);
  
          int num1;
          int num2;
          int num3;
          int sum;
          int average;
          int product;
          double largest
  
          System.out.print("Enter First Integer: ");
          num1 = input.nextInt();
  
          System.out.print("Enter Second Integer: ");
          num2 = input.nextInt();
  
          System.out.print("Enter Third Integer: ");
          num3 = input.nextInt();
  
          sum = num1 + num2 + num3;
          average = sum / 3;
          product = num1 * num2 * num3;
  
  
          if (largest =num1 &gt; num2 &amp; num2 &gt; num3)
  
          System.out.println(sum);
  
          System.out.println(average);
  
          System.out.println(product);
  
          System.out.println("The biggest number is " + largest);
      }
  }
  </code></pre>