Question: Making an array using a function and range of numbers for variable

Hi, does anybody know how I would create an array from a function.. for example:

Say I have the function y = x^2, and I am choosing the points 1-5 for x, how would I make an array to display all the values 1-5 and their corresponding y-values?

Help much appreciated.

Please Wait...