Iterating quine

An iterating quine is a sequence of different programs (preferably in different languages) in which the output of one program in the sequence is the source of the next.

If the sequence is N programs long, the source of program i is S(i) and the output of program i is O(i), then O(i) = S(i+1) and O(N) = S(1).

External resources

 * Iterating quines - has several examples.