>>1
z is uninitialized and while it is rare it will contain 133745639 and cause a change in the runtime behavior of the program, it is still extremely poor practice and you are opening yourself up for security vulnerabilities.
What is "133745639" how would another programmer reading this code understand what that value is there for? You should avoid the use of so called "magic constants" and declare them as a constant value with appropriate variable name earlier in the file.
While indentation style is a matter of personal preference, I highly recommend staying away from Allman style and using something more practical like K&R or BSD KNF style. This is primarily for readability. There are exceptions to this rule, particularly in case you are using advanced custom preprocessing commands or regular expressions before compiling the code where K&R style allows this to be done easily.
if ( z = 133745639 )
This is an extremely common C/C++ programming trap. Some compilers will warn you about this mistake, and you shouldn't feel bad about making it- it happens to the best of us. Essentially what is happening here, you have put only one "=" sign instead of two. When program execution reaches the statement, it will set the value of the variable "z" to "133745639", and then test if the new value assigned to z is zero (in which case the if condition will be considered not true or false) or non-zero (in which case the if condition passes and execution will continue into the block of code embedded in the if statement.
cout << "x=" << x << "y=" << y << endl;
The C programmer in me always cries when it sees this. While it is not ``bad'' programming, it is extremely ugly and more than that time consuming to write. Some would say operator overloading is in itself extremely ugly, however this is standard in ``real world programming'' so I'll let it slide. I highly recommend using printf or fprintf if speed is an issue.
else
x++;
This is never bad in itself, but you have actually been inconsistent in your use of braces. Note for the success part of the if condition you have used braces; still for a single statement yet here where there is a single statement you have ommited them. Choose one and stick with it.
system("PAUSE");
I shouldn't need to tell you off for using this but I will. Never use system("PAUSE"); It is extremely insecure, as an example consider if there is a program called "pause.exe" in the same folder as your program, which is running with high priveleges. A malicious user now has not only run their code, but with escalated priveleges.
return 0;
Again, magic constants. Please use EXIT_SUCCESS.
All in all, you have made a reasonable first attempt at your program and then, failing to understand where the error was come here for help. This shows a willingness to learn and self-improve and I commend you for it, it's a rare quality in the programming industry. I'm not going to grill you for the obviously stupid program, because I can see you were just curious and experimenting with loops. I hope this helped you and I wish you all the best in future.