乘法表

时间:2014-10-27 19:37:59   收藏:0   阅读:138
#include <iostream>

using namespace std;

int main()
{
   int i,j;
    for(i=1; i<=9; i++)
    {
        for(j=1; j<=i; j++)
        {
            cout<<j<<"*"<<i<<"="<<j*i<<" ";

        }
        cout<<endl ;
    }
    return 0;
}

更正之后的
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!