第三个C++程序:ComputeExpression
#include<iostream>
using namespace std;
int main()
{
cout << "(10.5+2*3)/(45-3.5)=";
cout << (10.5 + 2 * 3) / (45 - 3.5) << endl;
return 0;
}
#include<iostream>
using namespace std;
int main()
{
cout << "(10.5+2*3)/(45-3.5)=";
cout << (10.5 + 2 * 3) / (45 - 3.5) << endl;
return 0;
}
相关推荐