UVA10212 The Last Non-zero Digit.

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=14&page=show_problem&problem=1153 [PDF](https://uva.onlinejudge.org/external/102/p10212.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10212/4e8f810bc4e7a305f60b05b1e511704f8aa33548.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10212/0894c564af5b074b1fa71eba4f22eddd87c8094a.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10212/f87ef3743b89683c4cc1e3cc87091658d956339f.png)