I have this sequence of numbers: 1,2,3. (It can be from 1 to infinity.)
I want to add each sequence number to it, for example:
The sequence has 3 numbers.
You need to add it like this:
(1)
1+1=2
1+2=3
1+3=4
(2)
2+1=3
2+2=4
2+3=5
(3)
3+1=4
3+2=5
3+3=6
The program should print the list with the results of each sequence number separately:
1 = (2,3,4)
2 = (3,4,5)
3 = (4.5.6)