trying to figure out how to minus the place of an int parameter in a method.
I'm trying to figure out how to solve this particular problem:
I'm given a limited length of a string number and im trying to figure out how to find a particular char in the string and if not, if the index of this character is greater than this character itself, reduce the index by one and return it into the method until it has found the desired number.
For example: string d = "23456";
If 3 (1) was my desired target and the index called from main was a number greater than 3 (1) and less than 6 (4) it would minus that number and return it back to the method to repeat the process until the index 1, is found.