Write and execute a script to read and display numbers using a while loop terminated when 0 is entered.