I have read the above program and try to understand it but i cannot understand all. I only can calculate the 53 without the 1 and 370 without the 3. I don't know why. Your explanations is greatly appreciated by me and others.

n=n/10; -- Is it the 153 calculate 3 first, then 5 and finally 1.

Sorry for my stupidness.

Your help is greatly appreciated by me an others.