九九乘法表

 

#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
    // 乘法口诀表
    for(int i=1; i<10; i++)
    {
        for(int j=1; j<=i; j++)
        {
            cout << j << "x" << i << "=" << i*j << "   ";
        }
        cout << endl;
    }
    return 0;
}

 

posted @ 2021-10-14 00:10  十一的杂文录  阅读(21)  评论(0编辑  收藏  举报