depending on how you are programming this, you could do it a few different ways. If you are using an array you could "sort" the array and have it print the array - off the smallest integer (i.e. subtracting the integer out of the index).
I'm getting tired of hearing you heavy posters slam beginners on here all the time. I'm learning myself. Also, I understand that some people just are tring to cheat for an easy answer but you were a beginner once too! Play nice or don't comment, looks like your rank says "TEAM" colleage to me. if you want to slam someone feel free to rip on my reply.