fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout<<"The C++14 Add 2 Numbers Program."<<endl;
  6. int x = 10;
  7. int y = 10;
  8. int z = (x + y);
  9. cout<<"X "<<x<<" Y "<<y<<" Z "<<z<<endl;
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
The C++14 Add 2 Numbers Program.
X 10 Y 10 Z 20