2個數字加法

覺得興奮嗎~可以來寫個加法小程式~開心每一天~耶

#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
    int x;
    int y;
   
    cout << "請輸入第一個數字";
    cin  >> x;
    cout << "請輸入第二個數字";
    cin >> y;
    cout << x << "+" << y << "=" << x+y;
    system("pause");
    return 0;
}

有圖有真相的執行畫面



寫程式跟好友相聚/跑步/游泳/看外曼/做菜/聽西洋樂一樣都是快樂的事~

留言