fork download
  1. #include <iostream>
  2. using namespace std; // consider removing this line in serious projects
  3. int main() {
  4. cout<<"The C++14 Addition/Multiply Program."<<endl;
  5. int num1 = 25;
  6. int num2 = 25;
  7. int num3 = (num1 + num2);
  8. cout<<"NUM1 "<<num1<<" NUM2 "<<num2<<" NUM3 "<<num3<<endl;
  9. int num4 = 35;
  10. int num5 = 35;
  11. int num6 = (num4 * num5);
  12. cout<<"NUM4 "<<num4<<" NUM5 "<<num5<<" NUM6 "<<num6<<endl;
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5272KB
stdin
1
2
10
42
11
stdout
The C++14 Addition/Multiply Program.
NUM1 25 NUM2 25 NUM3 50
NUM4 35 NUM5 35 NUM6 1225