This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Lists and Matrices / List Construction /

Further Examples: Table

Here are the squares of the first 10 integers.

In[1]:=

Out[1]=

This gives the cubes of the integers from -3 to 3.

In[2]:=

Out[2]=

Here is Pascal's triangle using nested lists with the inner iterator j dependent upon the outer iterator i. The output is then formatted with TableForm.

In[3]:=

Out[3]//TableForm=