v=[]
while 1,
  x = input("Enter a number or finish:", "string");
  if x=='finish'
    break;
  end;
  x = sscanf(x, "%e");
  v($+1)=x;
end;
v