C
Camel
I have no clue with my homework, can anyone help me?
Three digits "1,2,3", how many 3-digit numbers can be made? print all the
numbers
I know how to calculate the total numbers and using loop to print all the
numbers. The problem is how to write a generic program that takes any number
of digits. For example, if given "1,2,3,4,5" digits, you still can use your
program to print all the combinations of 5-digit numbers without modifing
it.
Thanks in advance.
Three digits "1,2,3", how many 3-digit numbers can be made? print all the
numbers
I know how to calculate the total numbers and using loop to print all the
numbers. The problem is how to write a generic program that takes any number
of digits. For example, if given "1,2,3,4,5" digits, you still can use your
program to print all the combinations of 5-digit numbers without modifing
it.
Thanks in advance.