4.20打卡

#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
    int i,j;
    for(i=1;i<=9;i++)
    {
        for(j=1;j<=i;j++)
        {
            if(j<i){
                if(i*j/10!=0)
                cout<<j<<"*"<<i<<"="<<i*j<<"  ";
                else
                cout<<j<<"*"<<i<<"="<<i*j<<"   ";
            }
            else
            cout<<j<<"*"<<i<<"="<<i*j<<endl;
        }
    }
    return 0;
}

 

posted @ 2023-04-20 15:28  记得关月亮  阅读(28)  评论(0)    收藏  举报