If you have that many values to get the maximum for you should really get a collection / array and iterate over it. If you write that many by hand you're insane.
Originally posted by fred rosenberger:
but that can get ugly if you start having more than 3... what are you going to do if you have 50? or 1000?
the solution would probably depend on how you are storing them, but i'll leave it as an exercise for you to think about...