Read 2 variables, named A and B and make the sum of these two variables, assigning its result to the variableX. Print X as shown below. Print endline after the result otherwise you will get “Presentation Error”.
The input file will contain 2 integer numbers.
Print X according to the following example, with a blank space before and after the equal signal.
|Sample Inputs||Sample Outputs|
|X = 19|
|X = -6|
|X = 8|
using namespace std;
int a, b, x;
cout<<“X = “<<x<<endl;