To calculate the Sum of two numbers :

#include<iostream.h>
#include<conio.h>
int main( )
{
int a,b,sum;
cout<<"Enter the value of a = ";
cin>>a;
cout<<"Enter the value of b = ";
cin>>b;
sum=a+b;
cout<<"Sum is ="<<sum;
getch( );
return 0;
}


Algorithm :
Step 1 - Declare the require program variables a, b and sum.
Step 2 - Read the values of a and b.
Step 3 - Calculate their sum i.e. sum a+b
Step 4 - Write the calculated Result i.e. write sum
Step 5 - Stop


OUTPUT :
Enter the value of a = 5
Enter the value of b =  10
Sum is = 15