Desqeh

Desqeh
Developer
First you start off with your #includes.
Code:
#include <iostream>
#include <math.h>
Now after that, you add this.
Code:
using namespace std;
You always need that.
Now for the function(Main).
Code:
int main()
{
    int a, b, total;
a and b are going to be the numbers you want to be.
Now we add it.
Code:
cout << "Enter a number you want to add " << endl;
    cin >> a >> b;
Like again, a and b are the numbers you want. Now after that, here was we need to give us the answer.
Code:


total = a + b;
   
    cout << "The total sum is : " << total << endl; 
    system("PAUSE");
    return 0;
}
If I didn't explain good, feel free to pm me.