Batch file, 6 digit number that sums to given number

Sat000

Honorable
Mar 5, 2013
1
0
10,510
0
Hello,
I would like to create script file that would generate all numbers from 1000,00 to 9999,99 in 0000,00 format (with two decimals) which would apply to specific conditions.
For now, first condition is that sum of all digits in a number is 30, number ends with 9 and in second place is also number 9. I would like to add additional conditions later.
Thanks!
 

PhilFrisbie

Distinguished
Apr 22, 2006
666
0
19,310
53
What are you really asking?
Do you want us to recommend a scripting language? If so, what OS are you running?
Do you want help with the algorithm?
Do you want us to write it for you?
Is this homework?
 

randomizer

Distinguished
Moderator
Jul 24, 2006
880
0
19,260
62
It must be homework. There's no practical reason for such inane requirements, which is an almost universal attribute of homework questions.

If you want help, you'd be wise to answer the above questions. Right now you have simply stated that you want to write a script without asking any questions.
 
Thread starter Similar threads Forum Replies Date
David___Only Apps General Discussion 0
S Apps General Discussion 4
M Apps General Discussion 3
D Apps General Discussion 2
N Apps General Discussion 1
NoctisLionward Apps General Discussion 2
malavena Apps General Discussion 3
Tom Waller Apps General Discussion 2
P Apps General Discussion 1
S Apps General Discussion 4
A Apps General Discussion 13
Z Apps General Discussion 1
P Apps General Discussion 7
G Apps General Discussion 0
T Apps General Discussion 5
SHADOWSTRIKE1 Apps General Discussion 3
S Apps General Discussion 3
R Apps General Discussion 3
P Apps General Discussion 2
M Apps General Discussion 3

ASK THE COMMUNITY

TRENDING THREADS