Ta|eweaverツール升スレ combo49hits!at MMOSALOON
Ta|eweaverツール升スレ combo49hits! - 暇つぶし2ch198:ネトゲ廃人@名無し
07/01/25 09:29:49
#include <stdio.h>
main()
{
    int uriage[3][5]={  {150,250,300,200,180} ,
                        {200,300,170,400,290},
                        {300,380,200,250,220} } ;
    int goukei;
    int i,j;

    for( j=0; j<3 ; j++){ //5か月分繰り返す
        goukei = 0;     // 合計を0クリア(初期化)
        for( i=0 ; i < 5 ; i++ ){   // 一月ぶんの合計
           goukei= goukei + uriage[j][i] ;  //合計の計算
        }

        printf("商品%dの売上合計:%d円\n",j+1,goukei);
    }
}


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch