#include <iostream>
using namespace std;
int main()
{
int x;
int y;
cout<<"輸入x值:"<<endl;
cin>>x;
cout<<"輸入y值:"<<endl;
cin>>y;
cout<<"x值:"<<x<<endl;
cout<<"y值:"<<y<<endl;
cout<<"x和y的五則運算如下:..."<<endl ;
cout<<"x+y="<<x+y<<endl;
cout<<"x-y="<<x-y<<endl;
cout<<"x*y="<<x*y<<endl;
cout<<"x/y="<<x/y<<endl;
cout<<"x%y="<<x%y<<endl;
system("pause");
return 0;
} |