fork download
  1. //this is for wiriting a program that stores the following integers: 62 & 92
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main() {
  6. // Store the integers in variables
  7. int num1 = 62;
  8. int num2 = 99;
  9.  
  10. // Calculate the sum and store it in 'total'
  11. int total = num1 + num2;
  12.  
  13. // Print the result
  14. cout << "The sum is: " << total << endl;
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
The sum is: 161