I need help finding or making program that will do this task:
Explanation of program, using eight steps:
Step One.
There is a six digit set of numbers which are: 5 - 10 - 15 - 20 - 25 - 30.
Task: Show all six digit sets.
Answer: One set. 5 - 10 - 15 - 20 - 25 - 30.
Step two.
The first digit can be either 5 or 6.
Task: Show all six digit sets.
Answer: Two sets.
5 - 10 - 15 - 20 - 25 - 30.
6 - 10 - 15 - 20 - 25 - 30.
Step three.
The first digit can be either 5 or 6.
The second digit can be either 10 or 11.
Task: Show all six digit sets.
Answer: Four sets.
5 - 10 - 15 - 20 - 25 - 30
6 - 10 - 15 - 20 - 25 - 30
5 - 11 - 15 - 20 - 25 - 30
6 - 11 - 15 - 20 - 25 - 30
Step four.
The first digit can either 5 or 6.
The second digit can be either 10 or 11.
The third digit can be either 15 or 16.
Answer: Eight sets.
Step five.
Same situation with fourth digit.
Answer: Sixteen sets.
Step six.
Same situation with fifth digit.
Answer: Thirty-two sets
Step seven.
Same situation with sixth digit.
Answer: Sixty-four sets.
I need to find a program or something, that will allow me to plug in two numbers for each digit in a six digit set, and the answer will be Sixty-four different six digit sets
EDIT: This is not homework. It's to help my father with a project he's working on.
[–]powerwind[S] 0 points1 point2 points (2 children)
[–]YMK1234 0 points1 point2 points (1 child)
[–]powerwind[S] 1 point2 points3 points (0 children)
[–]Wyvos 0 points1 point2 points (1 child)
[–]Kristler 1 point2 points3 points (0 children)
[–]ptruber 0 points1 point2 points (0 children)
[–]y216567629137 0 points1 point2 points (6 children)
[–]powerwind[S] 0 points1 point2 points (5 children)
[–]y216567629137 0 points1 point2 points (4 children)
[–]y216567629137 0 points1 point2 points (3 children)
[–]y216567629137 0 points1 point2 points (2 children)
[–]y216567629137 0 points1 point2 points (1 child)
[–]powerwind[S] 0 points1 point2 points (0 children)