0
点赞
收藏
分享

微信扫一扫

小玩意1.0

boom莎卡拉卡 2022-02-17 阅读 109
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,i,j;
    cin>>a>>b;
    for(i=1;i<=b-1;i++)
    {
        for(j=1;j<=a;j++)
        {
            cout<<"*";
        }
        cout<<endl;
    }
    for(i=1;i<=a;i++)
    {
        cout<<"-";
    }
    cout<<endl;
    for(i=b+1;i<=a;i++)
    {
        for(j=1;j<=a;j++)
        {
            cout<<"*";
        }
        cout<<endl;
    }
    return 0;
}

就是这么简单,快去试试吧!(记得输入1个不要太大的数哦)

举报

相关推荐

0 条评论