my program about to take the value from time. time and my for loop should catch each time and print but I am able to print the final value only. code mentioned below for referen