title: how to calculate min, max, sum, and avg
body: <pre><code>import java.util.*;
  public class Lab5_2{
      public static void main(String[]args){
  
          Scanner scan = new Scanner(System.in);
          int num=0;
          boolean choice=true;
          int min= Math.min(100, num);// need to fix the min to the avg, won't print out
          int max= Math.max(0, num);
          int sum=+ num;
          double avg= sum/(num+1);
  
          while(choice==true){
              if(num&gt;=0 &amp;&amp; num&lt;=100){
                  System.out.println("Please enter a number between 0 and 100 ");
                  num= scan.nextInt();
                  System.out.println("You entered: " + num);     
              }else if(num&lt;0 || num&gt;100){
                  choice=false;
                  System.out.println("Thank you ");
              }
          } 
      }
      /*
         System.out.println("Min = " + min);
         System.out.println("Max = " + max);
         System.out.println("Sum = " + sum);
         System.out.println("Avg = " + avg);*/
  }
  </code></pre>
  
  <p>I know this is way easier then I am making it seem, but I can't for the life of me figure out how to get my code to calculate the min,max,sum, and avg. I need it so that I can input any number any amount of numbers and compute them not using arrays(since my class hasn't gotten there).</p>
  
  <p>Thank you in advance</p>