3. Write a program to print the following pattern for ‘n 'number of inputs.
e.g. Input: 1 3 2 4 5
Output:
1 3 2 4 5
4 5 6 9
9 11 15
20 26
46
Answers
Answered by
5
Output:
1 3 2 4 5
4 5 6 9
9 11 15
20 26
46
Similar questions