It's been 10 years since I did Pascal, but I can at least point you in the right direction.
This will be psuedo code...
Get the input and store as an integer (say, Input)
factorsArray(0) = 1 /* 1 works for everything */
fArrayCount = 1 /* keep track of array indexing */
Range = Input / 2
for i = 2 to Range do /* check all numbers less than half input */
if ((Input % i) = 0 then /* if remainder is 0, it's a factor */
factorsArray(fArrayCount) = i /* store in results array */
end if
next i
print factorsArray /* print the results array, might need to loop through */
------------------------------------------------
Forgive me writing in several different languages...I get them all confused until I actually start writing specific code.
The (Input % i) is the mod function...it should be in Pascal, although I'm not 100% certain. It basically divides the number and return the remainder.
Hope this helps.