> a[1] = x;
Perhaps
a[x] = x;
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
Use the same kind of for loop you used to fill the array perhaps?
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953