Looping till non zero by decrementing it.