title: Check if value is between two numbers in Java
body: <p>I am in a programming class and we are making a simple program. In this program the user will put in five assignments, the points they got on that assignment and the total points available. I have all of the basic things except for a grading scale. I am trying to make it so when their percent is between 92 and 100 percent it will say you have an A in this class. This is what I have so far: </p>
  
  <pre><code>if ( pC &gt;= 92, pC &lt;= 100 ) {
      System.out.print("\n You have an B");
  }
  </code></pre>
  
  <p>So far that has not worked and I am having a lot of trouble.</p>