I'm having problems figuring out how to select and set digits within numbers.
For example, I want the user to enter a number:
"Enter Number" ? -> A (Int log A)+1 -> B
Above would be the start of the program. After this, I would like a line that selects, let's say the 4th digit in the number A and sets its value as C.
How can this be done?
To clarify what I mean:
"Enter Number" ? -> A<-- User enters number, e.g 442
(Int log A)+1 -> B<-- This responds as how many integer digits the number has, in our case for 442, 3.
After this I want the second digit in 442 to be selected and set as C.
Hope you can help. Thank You.