#include <iostream>
using namespace std;
int main()
{
int a, b, *p1, *p2, sum;
cout << "Enter both numbers: ";
cin >> a >> b;
p1 = &a;
p2 = &b;
sum = *p1 + *p2;
cout << "Sum is " << sum <<endl;
system("pause");
}
using namespace std;
int main()
{
int a, b, *p1, *p2, sum;
cout << "Enter both numbers: ";
cin >> a >> b;
p1 = &a;
p2 = &b;
sum = *p1 + *p2;
cout << "Sum is " << sum <<endl;
system("pause");
}