%n or Out[n]

is a global object that is assigned to be the value produced on the n^(th) output line.


gives the last result generated.


gives the result before last. %%% (k times) gives the k^(th) previous result.


  • Out[] is equivalent to %.
  • Out[-k] is equivalent to %%% (k times).


Basic Examples  (1)

Given a sequence of inputs:

Recall the outputs:

Introduced in 1988