Question: printing output of all statments inside loop

How can one print the output from the statements executed within a loop as the loop outputs only the last calculation.
Please Wait...