Input your data number by number and when you are done with all of your data inputting, put in 0 for the answer.
William Credit to @nccheetahgirl for some coding.