added while loop

also added variables so numbers entered in the raw_input will be
numbers and not strings