View Single Post
  #1 (permalink)  
Old 05-31-2007, 06:08 PM
Hasan Hasan is offline
Member
 
Join Date: May 2007
Posts: 11
Hasan is on a distinguished road
Finding Median of X Integers
I need to find the median of 5 integers for a program. Currently i am sorting the numbers using Math.min and Math.max. If someone has a slightly more elegant way please post here.
Reply With Quote
Sponsored Links