% sample13.t % adding a list of 10 ages using a counted loop % var total_age : int var age : int total_age := 0 % set it initially to zero for i:1..5 put "please enter the next age" get age total_age := total_age + age % add new age to the total end for put "The total age of the group of 5 is ",total_age