随便做的,也可以说即兴而作。 不说别的,上代码:

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main()
{
    cout<<"nn乘法口诀表"<<endl;
    Sleep(1000);
    cout<<"请输入n:"<<endl;
    Sleep(1000);
    int n=0;
    cin>>n;
    cout<<"解析中";
    cout<<".";
    Sleep(250);
    cout<<".";
    Sleep(250);
    cout<<".";
    Sleep(1000);
    cout<<"输入成功"<<endl;
    Sleep(100);
    for(int i=1;i<=n;i++)
    {
        for(int j=1;j<=i;j++)
        {
            cout<<i<<"*"<<j<<"="<<i*j<<" ";
        }
        cout<<endl;
    }
    cout<<"记得点"<<"👍";
    return 0;
}

0 comments

No comments so far...