prompted user for data and stored it as a number in a variable