Desqeh
Developer
First you start off with your #includes.
Now for the function(Main).
Now we add it.
- Code:
#include <iostream>
#include <math.h>
- Code:
using namespace std;
Now for the function(Main).
- Code:
int main()
{
int a, b, total;
Now we add it.
- Code:
cout << "Enter a number you want to add " << endl;
cin >> a >> b;
- Code:
total = a + b;
cout << "The total sum is : " << total << endl;
system("PAUSE");
return 0;
}