• + 3 comments

    Before the beginning of while loop, make sure you do revno=0;