Board logo

標題: 二氧化碳排放量 [打印本頁]

作者: 張彥承    時間: 2013-9-20 11:32     標題: 二氧化碳排放量

本帖最後由 張彥承 於 2013-9-20 11:56 編輯

[attach]750[/attach]
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
   for (int i = 1; i <= 5 ; i++)

    {
      cout << i<<"次烤肉排放"  <<i*400<< "噸二氧化碳"<< endl;     
    }           
  
  

    system ("pause");
    return 0;
   
   
}




歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/) Powered by Discuz! 7.2