Remove semicolon
Change 0 to 1
The 0 was a mistake. The while statement was executed only once.