Computer Science, asked by madhuchowdary754, 6 months ago

write a program to generate all unique combinations of three numbers n1, n2, n3 using for loops

Answers

Answered by rupayan25
0

Answer:

Input: N = 3

Output:

1 1 1

1 2

3

Input: N = 5

Output:

1 1 1 1 1

1 1 1 2

1 1 3

1 2 2

1 4

2 3

5

Similar questions