Let's say that I have the following number: 1286 now I want to remove the last digit 6 and end up with the first 3 digits 128 only. I also would like to do this using the number 6 and the number 1286 only as inputs.
Also if there is a c# solution would be great. Thanks
Edit: I want to do this using a math equation between the 6 and the 1286, I already know how to parse strings, which is not what I'm after.