c++程序—乘法表

  #include<iostream>
using namespace std;
#include<string>
#include<ctime>

int main()
{
    //乘法口诀表
    for (int j=1; j < 10; j++) 
    {
        for (int i = 1; i <= j; i++)
        {
            cout << i << " * " << j << " = " << i * j << "\t";
        }
        cout << endl;
    }



    
    system("pause");
    return 0;

}

 

posted @ 2020-02-29 14:00  Jackie_Wang  阅读(1014)  评论(0编辑  收藏  举报