Hello
this happend because an array index in Pascal by default start from 0
your array in Main program Start From 1 But the array that is defined in procedure is started from 0 By Default
so if you want to print fifth element of array in procedure you mast print num[4] in procedure.
Reputation Points: 12
Solved Threads: 10
Junior Poster in Training
Offline 66 posts
since Jun 2007