write a program to generate all unique combinations of three numbers n1, n2, n3 using for loops
Answers
Answered by
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
English,
3 months ago
Science,
3 months ago
Social Sciences,
6 months ago
Computer Science,
6 months ago
Math,
9 months ago