返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {           
  6.      
  7.     int X=10,Y=3;
  8.      cout<<"當x等於"<<10<<", y等於"<<3<<"時..."<<endl;   
  9.     float h=152.6f, w=60.5f;  
  10.      cout<<"10+3="<<X+Y<<endl;
  11.      cout<<"10-3="<<X-Y<<endl;
  12.      cout<<"10*3="<<X*Y<<endl;
  13.      cout<<"10/3="<<X/Y<<endl;
  14.      cout<<"10%3="<<X%Y<<endl;
  15.     system("pause");
  16.     return 0;   
  17. }
複製代碼

TOP

返回列表