返回列表 發帖
  1.   int x=23<,y=7;
  2.     cout<<"當x的值為"<<x<<",y的值為"<<y<<"時..."<<endl;
  3.     cout<<"x+y="<<x+y<<endl;
  4.     cout<<"x-y="<<x-y<<endl;
  5.     cout<<"x*y="<<x*y<<endl;
  6.     cout<<"x/y="<<x/y<<endl;
  7.     cout<<"x%Y="<<x%y<<endl;
  8.    
  9.     system("pause");
  10.     return 0;
  11. }
複製代碼

TOP

返回列表