#include <iostream> using namespace std; int ma
发布网友
发布时间:2023-04-30 18:39
我来回答
共1个回答
热心网友
时间:2023-10-09 17:51
不能用
cin>>x,y;
要用
cin>>x>>y;
#include <iostream>
using namespace std;
int main()
{
int x, y, z;
cout << "Enter two integer values: ";
cin >> x, y;
if (x > y)
z = x - y;
else if (x < y)
z = y - x;
else if ( x == y);
z = x+y;
cout << "The value of z is: " << z;
return 0;
}