I've been struggling with this for days now......
Say the number entered is 12345
If the user wants to find the value of the 4th digit, which would be the 2....how can I do this???
[QUOTE=ddanbe;863331]He's counting his digits from right to left Walt. So IMHO it has to be more something like this : (pseudocode) number = 12345; n = 4; //we seek the fourth digit from the right num = number / 10^(n-1); digitvalue = num % 10; //this we want[/QUOTE] Interesting.... Dividing … Read More