passing variable values from input to print out