There are a couple of things wrong with your printf statement. Change it to...
- printf("x=%d y=%d z=%d\n",x,y,z);
I moved the close-quote to the left so that x,y,z is outside the quoted string.
I terminated the format string with a newline. This insures the output appears even if that port has buffered output.
What do you get when you run the program?