#include<iostream>
usingnamespace std;
int main(){
int x,m,n;
cout<<"Enter m:";
cin>>m;
cout<<"\nEnter n:";
cin>>n;
x= ++m + ++n;
cout<<"THE value of X :"<<x;
return 0;
}
The output I get is
Enter m :10
Enter n: 15
THE value of X : 27
But the result on my textbook is saying m=11,n=16 x=26