I want to print all entered elements. Instead, my code prints the most recently entered element twice.I want to print all entered elements. Instead,
I want to print all entered elements. Instead, my code prints the most recently entered element twice.I want to print all entered elements. Instead,