title: Average of numbers program outputting incorrect result
body: <p>Am trying to write simple program to find average of 3 int values, but it always seems to get the average wrong</p>
  <pre><code>import java.util.Scanner;
  public class IntegerAverage {
  
  public static void main(String[] args) 
  
  {
     
      Scanner in = new Scanner(System.in);
      int num1;
      int num2;
      int num3;
  
      // Ask user
      System.out.println(&quot;Input 1st number&quot;);
      num1 = in.nextInt();
      System.out.println(&quot;Input 2nd number&quot;);
      num2 = in.nextInt();
      System.out.println(&quot;Input 3rd number&quot;);
      num3 = in.nextInt();
  
      // Print answer
      System.out.println(&quot;The average is:&quot;+ ((num1 + num1 + num3)/3));
  }
  }
  </code></pre>
  <p>Help is greatly appreciate</p>