i used tis code
but z is equal to x and y numbers combined like if x was 4 and y was 2 z would be 42. i am trying to make it so that if x was 4 and y was 2 it would equal 6. what am i doing wrong!!!!!!!!!!!PHP Code:
cout << "Enter the first number you would like to add" << endl ;
cin >> x;
cout << "You are planning to do " << x << " plus"<< endl ;
cin >> y;
z = x + y;
cout << x << " + " << y << "=" << z <<endl ;
[edit]there are string type varibles[/edit]