参考代码(没有检错机制):
#include
using namespace std;
int main()
{
double num1, num2;
cin >> num1 >> num2;
cout << "和:" << num1 + num2 << endl;
cout << "积:" << num1 * num2 << endl;
cout << "差:" << num1 - num2 << endl;
cout << "商" << num1 / num2 << endl;
return 0;
}
运行结果:
main(){
int a=0,b=0;
cin>>a;
cin>>b;
cout<}
不让发