Unexpected type Average
<p>for some reason the command prompt keeps on asking me for input but I am placing a value on <strong>line 12</strong> (sum + one) = sum. If you guys could help me determine whats wrong with it that would be amazing.</p>

<pre><code>import java.util.Scanner;

public class FunnyAverage {
   public static void main(String[] args){          
   Scanner in = new Scanner(System.in);
   System.out.print("How many values to read? ");
   int top = in.nextInt();
   System.out.print("Enter Value: ");
   int one = in.nextInt();
   int number = 0;
   int sum = 0;
   (sum + one) = sum;

   while (number&gt;top){
       while (one % 6 != 0&amp;&amp;one % 17 != 0) {
           System.out.print("Enter Value: ");
           one = in.nextInt(); 
           number++;
       }
   }

   if (sum/top != 0){
       System.out.print("Average: " + sum/top);
   }
   System.out.print("None Divisible");
   }
}
</code></pre>
