2 回答
xungeer29
TA贡献46条经验 获得超20个赞
#include<iostream>
using namespace std;
int main()
{
double x, y, z;
cout << "Enter x,y,z: " << endl;
cin >> x >> y >> z;
if (z == (x + y))
cout << "x+y=z"<< endl;
else
cout <<"x+y!=z"<< endl;
return 0;
}
xungeer29
TA贡献46条经验 获得超20个赞
#include<iostream>
using namespace std;
int main()
{
double x, y, z;
cout << "Enter x,y,z: " << endl;
cin >> x >> y >> z;
if (z == (x + y))
cout << x << "+" << y << "=" << z << endl;
else
cout << x << "+" << y << "!=" << z << endl;
return 0;
}- 2 回答
- 0 关注
- 1676 浏览
添加回答
举报
0/150
提交
取消
