max,min,total,average calculation using java

create a 3 element integer to calculate and following

  1. min numbers
  2. max numbers
  3. total
  4. average

Maximum is 45
Minimun is 45
Total is 25
Average is 8.333333333333334
Maximum is 45
Minimun is 45
Total is 70
Average is 23.333333333333332
Maximum is 45
Minimun is 45
Total is 85
Average is 28.333333333333332

 

Leave a Comment

Your email address will not be published. Required fields are marked *

19 − 16 =