fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x,y,z;
  6. x=5045,y=x+2000,z=y+1000;
  7. cout<<"x = "<<x<<endl;
  8. cout<<"y = "<<y<<endl;
  9. cout<<"z = "<<z<<endl;
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
x = 5045
y = 7045
z = 8045