in reply to find min, max and average

How does your code fail?

What should it output?

What does it output instead?

Replies are listed 'Best First'.
Re^2: find min, max and average
by techtween (Novice) on May 24, 2011 at 10:53 UTC

    i meant to say that i got the lt value using this code. But now i need to find the maximum lt value, minimum lt value, average of all lt values. i need to find these three for all the three sets of tags seperately(then a newline) and then the five set of tags seperately, inside a single program. this is what i couldnt do. so kindly help. .

      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.