fork(3) download
  1. //Calculate Integers
  2.  
  3. //Add 2 integers to find the total
  4.  
  5. //Input: 2 Integers
  6. //Output: Total
  7.  
  8. #include <iostream>
  9. #include <iomanip>
  10. using namespace std;
  11.  
  12. int main() {
  13. //Integer 1
  14. int x = 62;
  15.  
  16. //Integer 2
  17. int y = 99;
  18.  
  19. //Calculate total
  20. int Total = x + y;
  21.  
  22. //Display results
  23. cout << "Total: " << Total << endl;
  24.  
  25. return 0;
  26. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Total: 161