title: How do I use a loop to find the lowest score in an array and all scores > or = 100?
body: <p>Here's what I have, the application is to determine the average, lowest, and perfect of an array of scores. I figured the average but I try to figure the perfect scores I don't get any output? I can't see where I went wrong? I am also not exactly sure how to find the lowest of all scores. Can anyone explain what I'm doing wrong? and/or how to use a loop to find the lowest of the scores?       </p>
  
  <pre><code>    int[] scores = new int[10]; 
      int score = 0; 
      int count = 0; 
      int total = 0;
      final int QUIT = 909; 
      final int MAX = 10; 
      Scanner input = new Scanner(System.in); 
      System.out.print("Please enter your scores: "); 
      score = input.nextInt(); 
  
      while(count &lt; MAX &amp;&amp; score != QUIT) 
      { 
      if(score != QUIT) 
      { 
          scores[count] = score; 
  
          total += scores[count];
          System.out.print("Enter next quiz score or enter " + QUIT + " to finish: "); 
          score = input.nextInt(); } count++; 
      } 
  
      System.out.println("The scores entered were: ");
  
              for(int x = 0; x &lt; count; ++x) 
              System.out.print(scores[x] + " \n");
  
      System.out.println("The average of all scores: " + (total * 1.0 / count));
      System.out.println("Your lowest score: "); //not sure how to loop through to find the lowest score
      System.out.println("All perfect scores: ");
  
          for(int x = 0; x &gt;= scores.length; ++x) 
          {
              if(scores[x] &gt;= 100)
          {
          System.out.print(scores[x]); //not getting any output and I dont know why
  </code></pre>