//Castulo Jason Quintero CSC5 Chapter 2, P. 83, #1
//
/**************************************************************
*
* COMPUTE SUM OF TWO VARIABLES
* ____________________________________________________________
* This program computes the sum of two integers in variable form
* and store the sum in a variable named total.
*
* Computation is based on the formula:
* total = a + b
* ____________________________________________________________
* INPUT
* a: integer value
* b: integer value
*
* OUTPUT
* total : Sum of both integers
*
**************************************************************/
#include <iostream>
using namespace std;
int main ()
{
int a; //INPUT - integer variable
int b; //INPUT - integer variable
int total; //OUTPUT - Sum of a and b
//
// Initialize Program Variables
a = 62;
b = 99;
//
// Compute Sum
total = a + b;
//
// Output Result
cout << "The sum of the total is " << total << "." << endl;
return 0;
}
Ly9DYXN0dWxvIEphc29uIFF1aW50ZXJvIENTQzUgQ2hhcHRlciAyLCBQLiA4MywgIzEKLy8KLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiAqCiAqIENPTVBVVEUgU1VNIE9GIFRXTyBWQVJJQUJMRVMgCiAqIF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwogKiBUaGlzIHByb2dyYW0gY29tcHV0ZXMgdGhlIHN1bSBvZiB0d28gaW50ZWdlcnMgaW4gdmFyaWFibGUgZm9ybSAKICogYW5kIHN0b3JlIHRoZSBzdW0gaW4gYSB2YXJpYWJsZSBuYW1lZCB0b3RhbC4KICoKICogQ29tcHV0YXRpb24gaXMgYmFzZWQgb24gdGhlIGZvcm11bGE6CiAqIHRvdGFsID0gYSArIGIKICogX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCiAqIElOUFVUCiAqICBhOiBpbnRlZ2VyIHZhbHVlCiAqICBiOiBpbnRlZ2VyIHZhbHVlCiAqCiAqIE9VVFBVVAogKiB0b3RhbCA6IFN1bSBvZiBib3RoIGludGVnZXJzCiAqCiAqKioqKioqKioqKioqKioqKioqKioqKioqK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