fork download
  1. #include <iostream>
  2. using namespace std; // consider removing this line in serious projects
  3. int main() {
  4. cout<<"The C++14 Add/Multiply Program."<<endl;
  5. int a = 50;
  6. int b = 50;
  7. int c = (a + b);
  8. cout<<"A "<<a<<" B "<<b<<" C "<<c<<endl;
  9. int d = 50;
  10. int e = 50;
  11. int f = (d * e);
  12. cout<<"D "<<d<<" E "<<e<<" F "<<f<<endl;
  13. return 0;
  14. }
Success #stdin #stdout 0s 5292KB
stdin
1
2
10
42
11
stdout
The C++14 Add/Multiply Program.
A 50 B 50 C 100
D 50 E 50 F 2500