made var and console.log changes

made var and console.log changes to get calculation of eleven numbers 1
to 20