Quote:Is this programe have some problem
There is no problem here. Your program is doing exactly what the code is supposed to do.
If you want to know if it match your expectations, it is another problem, because you didn't told us what are your expectations.
If you know that the program is doing wrong, explain what is wrong and we may be able to help fixing that program.