Copy and modify your search for the minimum to find the maximum, and output the maximum after that.
After you have found the minimum and maximum, you can use almost the same technique you used to find the minimum and the maximum to also calculate the average.
In reply to Re^3: find min, max and average
by Corion
in thread find min, max and average
by techtween
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |