Program running fine except outputs at the bottom display last input number instead of each of the 5 numbers input. See example 3 in Lab10 doc for ideal output

Program running fine except outputs at the bottom display last input number instead of each of the 5 numbers input. See example 3 in Lab10 doc for ideal output