i need to take input and keep processing it until i get a zero as an input......
inp=input()while inp: process(inp) inp=input()
input() parses the input automatically into a number.