UVA Solution 11547 – Automatic Answer

Actually I was facing the problem how can make the second digit from the left that named as tens column.

So I did this algorithm.

1.First made the steps for n
2. Then made the n divided by 10 and take only the pure value no fraction
3. Then made the pure value divided with 10 as we want to find out the 10th’s coloumns
4. Then for the negative I used the absolute value builtin function.




Spread the love