The program assigns the values 3, 10, and 0 to variables x, y, and z respectively. Then, it assigns the values 10, 10, and 10 to variables x, y, and z respectively. After that, it assigns the values 3, 10, and 3 to variables x, y, and z respectively. Finally, it assigns the values 10, 10, and 0 to variables x, y, and z respectively. Therefore, the final values of x, y, and z are 10, 10, and 0 respectively.