// C02_2.CPP // 簡易程式範例 #include using namespace std; int main() { int PineApples, Grapes; // 宣告整數變數 int F_num; // PineApples = 5; Grapes = 6; // 設定變數初始值 F_num = PineApples + Grapes; // 運算式 cout << endl; // 輸出換行 cout << "水果計算 ... " << endl << "目前水果數 " << F_num << " ."; cout << endl; // 輸出換行 return 0; // 離開程式 }