|
1/ Don't use "txt" to hold a number - it's confusing.
2/ Rather than adding and removing digits from the left of a number, add and remove them from the right. This will allow you to use multiplication and division rather than conversions to strings
3/ You can replace the smallest and biggest code with calls to min() and max()
--OH.
|