Forums Register Login

incrementing characters

+Pie Number of slices to send: Send
hi everyone...can anybody help?
how do you increment a 3 letter / 3 digit command line input so that it prints out the input and the next letter/digit in the sequence???and also the number of sequences left???
ie aaa000 = start of sequence, zzz999 = end of sequence.
eg input 'drg569' prints out 'drg569, drg 570, 17439920 left
( 26*26*26*10*10*10 )
(- 4*18* 7*5 * 6* 9)
( ----------------- )
( 17439920 )
also what about sfz999 to sga000???
any help???
+Pie Number of slices to send: Send
Howdy!
This is probably a silly solution, but you might get it to work for you:


Hope this helps!
//Kaspar
+Pie Number of slices to send: Send
Please don't post the same question in multiple forums. It wastes the time of everyone who doesn't realize that a question has already been answered elsewhere. Putting all the answers in one place allows people to build on past answers rather than reinvent the wheel. I'm closing this thread - everyone please see the thread in Java in General (Intermediate) to follow up.
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1060 times.
Similar Threads
Need an auto generation logic
phone number input
substring from user input
character incrementation from the command line
character increment from the command line
Permutation / Combination
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:02:30.