#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int number1=58;int number2=93;
cout<<number1+number2<<endl;
cout<<number1-number2<<endl;
cout<<number1*number2<<endl;
cout<<number1/number2<<endl;
cout<<number1%number2<<endl;
system("pause");
return 0;
}作者: 胡綵玲 時間: 2017-8-1 16:02
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int x=23;
int y=7;
cout<<"當x的值為"<<x<<",y的值為"<<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;
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
cout<<"555555"<<endl;
int number = 10;
cin>>number;
cout<<number<<endl;
cout<<"你輸入的文字是:"<<number<<endl;
int x=23,y=7;
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;