Nick is correct (give him credit--I'm only answering because it wouldn't fit into the comment field).
You would define an array with 1,001 elements all initialized to zero. You read the 100 values one at a time, incrementing the array element which has the same index as the value that you are reading. After you do this 100 times, you will have an array of 1,001 elements (mostly still zero), and you simply print the number 0 as many times as specified by the value in the 0th array element, then the number 1 as many times as specified by the value in the 1st array element, etc. This sounds slow, but since it is an O(n) algorithm, it is faster than any other sorting method, but works only since you know the inputs are all integers within the range of 0 to 1,000 (1,001 total possibilities).