fork download
  1. //Andres Guzman CSC5 Chapter 2, P. 81, #1
  2. //
  3. /**************************************************************
  4. *
  5. * COMPUTE TOTAL SUM OF TWO NUMBERS
  6. * ____________________________________________________________
  7. * This program computes the total sum of integers 62 & 99
  8. *
  9. * Computation is based on the formula:
  10. * total = 62 + 99
  11. * ____________________________________________________________
  12. * INPUT
  13. * six : The integer 62
  14. * nin : The integer 99
  15. *
  16. * OUTPUT
  17. * total : The sum of the two integers
  18. *
  19. **************************************************************/
  20. #include <iostream>
  21. using namespace std;
  22.  
  23. int main ()
  24. {
  25. int six;
  26. int nin;
  27. int total;
  28. //
  29. //Initializing Variables
  30. six = 62;
  31. nin = 99;
  32. //
  33. //Compute total sum
  34. total = six + nin;
  35. //
  36. //Output result
  37. cout << total << endl;
  38. return 0;
  39. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
161