0
Visit every tuple
Write a program, given an input n, will generate all possible n-tuple using natural numbers.
n=1
(1),(2),(3),(4),(5),(6)...
n=2
(1,1),(1,2),(1,2),(2,2),(1,3),(3,1),(2,3),(3,2),(3,3)...
The output may be in any order, but must output each tuple exactly once.
The program mus...