update my program2

changed the output in the console