04-24-2011, 05:16 PM
Dear student, you have not provided the complete code. Anyways it is a simple code which has 3 variables x, y and z. Values of x and y are added up in the variable z.
using namespace std;
using namespace std;
Code:
#include <iostream>
main()
{
int x =5;
int y= 10;
int z = 0;
z= x+y;
cout<<"x="<<x<<endl;
cout<<"y="<<y<<endl;
cout<<"z="<<z<<endl;
system ("pause");
}
