fork(7) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int z=6, x=-2, y=4;
  7. z+=y=5+x--;
  8. cout << "x=" << x << endl
  9. << "y=" << y << endl
  10. << "z=" << z << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
x=-3
y=3
z=9