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