title: Count numbers in a "for loop" and give back average, min, max value in java
body: <p>A user should input a number "x", and then the count of "x" numbers, e.g. input = 3, then 3 random numbers like 3, 5, 7.</p>
  
  <p>Afterwards the program should give an output of the average, min and max value of this "x" numbers. So it has to read the numbers, but i don't know how it can be done.</p>
  
  <p>It should be done <strong>without arrays</strong> and with a for loop.</p>
  
  <p>I didn't find a possible solution here, but maybe I didn't do the right search.</p>
  
  <p>So here is what i got so far:</p>
  
  <pre><code>import java.util.Scanner;
  
  public class Statistic
  {
  public static void main (String[] args)
   {
      // Variables
      Scanner input = new Scanner(System.in);
      int number1;
      int numbers;
      double averageValue;
  
      // Input
      System.out.println("\n\n####################################################################");
      System.out.print("\n Pls enter a number: ");
      number1 = input.nextInt();
      System.out.print(" Pls enter " + number1 +" numbers: ");
      numbers = input.nextInt();
  
      for (int count = 0; count &lt; number1; count ++) {
          System.out.println(numbers); //Just for me to see which numbers are read by the programm
      }
      averageValue = numbers / number1;
  
      // Output
      System.out.println("\n Biggest number: " + Math.max(numbers));
      System.out.println("\n Smallest number: " + Math.min(numbers));
      System.out.print("\n Average value: " + averageValue);
  
   }
  } 
  </code></pre>
  
  <p>But it only prints out and calculates with the first number of the "numbers"-input. Further I am not sure how to use the "Math.max" for a random count of numbers.</p>