I not really understand the program. What the difference your program and my program ?

Thanks for your help.