Is there any program that can create 6 digit numbers with:
(DIGIT_1)+(DIGIT_2)+(DIGIT_3)+(DIGIT_4)+(DIGIT_5)+(DIGIT_6)=10
Any perl or C also can. Anyone can help me? Thank you
Can you explain the purpose for this request?
Looks like an assignment or test of some form.
it's not an assignment... just an interest to create possible number combination
I don't follow what you're after....
Do you just want to create a random 6 digit number (1 - 999999)?
Not sure what this summation formula supposed to do either...
Please elaborate with example(s) if possible
Yes, i want to create a random 6 digit number with:
(DIGIT_1)+(DIGIT_2)+(DIGIT_3)+(DIGIT_4)+(DIGIT_5)+(DIGIT_6)=10
For example:
0-0-0-0-9-1
0-0-0-9-0-1
2-2-2-2-2-0
and so on
Imagine that you have 10 separate 1's to add to your number. Pick ten numbers from one to five, and add one to each of those digits.
bakunin
3 Likes