乘法表

#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;
}

更正之后的
posted @ 2017-04-28 10:37  lytwajue  阅读(131)  评论(0编辑  收藏  举报