返回列表 發帖
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
  int x=256,y=5;
  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;
  system("pause");
  return 0;
}

TOP

返回列表