What is the problem or question that you have about this code?
Does it work as you expect?
If not, what does it do wrong that you thought it wouldn't? What behaviour did you expect? Did you give the program any relevant input?