Click here to Skip to main content
15,913,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I create index of number that contain only 0,2,7 in it and ignore all of the other numbers?

Ex. 0,2,7,20,22,27,70,72,77,200,202,207,...
Posted

1 solution

You could write a simple recursive function that checks the char to the right and then use a select switch to increment. (forgot it was c# not vb)

Then, if it's a 7, make it a zero and increment the char to the left of that char.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900