hhhmmm...

Remember... the most information you can provide will result in better and more accurate help. Just posting code and saying "code is giving wrong output" does not help diagnose the problem with your code. Imagine taking your car to the mechanics and saying "it doesn't work". How is he going to fix the car with that information?
I magine your output is zero for both min & max. That is because they were initially assigned zero and never were given any other value (check your code).

Luck,
CJSL

Chris S.Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

...

Originally Posted by CJSLMAN

Remember... the most information you can provide will result in better and more accurate help. Just posting code and saying "code is giving wrong output" does not help diagnose the problem with your code. Imagine taking your car to the mechanics and saying "it doesn't work". How is he going to fix the car with that information?
I magine your output is zero for both min & max. That is because they were initially assigned zero and never were given any other value (check your code).