Vitsy, 10 5 4 Bytes
New Versions! :D
[DN] [ ] Repeat while the top item is not 0 D Duplicate the top item N Print it out.
I would put a try it online link here, but Vitsy's try it online doesn't output every line as it is output yet.I would put a try it online link here, but Vitsy's try it online doesn't output every line as it is output yet.