返回列表 發帖
#include<iostream>  
#include<cstdlib>  
using namespace std;
int main()
{
   
    int number1 = 23;
    int number2 = 7;
   
    cout << number1+number2 << endl;
    cout << number1-number2 << endl;
    cout << number1*number2 << endl;
    cout << number1/number2 << endl;
    cout << number1%number2 << endl; //取餘數
   
    system("pause");
    return 0;

TOP

cout<<"2017谷哥人程式體驗營"<<endl;
    cout<<"學生:石庭禎"<<endl;
    system("pause");
  system("pause");
return 0;
  1. cout<<"2017谷哥人程式體驗營"<<endl;
  2.     cout<<"學生:石庭禎"<<endl;
  3.     system("pause");
  4.   system("pause");
  5. return 0;
複製代碼

TOP

返回列表