Home > database >  C + +
C + +

Time:09-24

For the bosses of the how to write?

CodePudding user response:

# include
using namespace std;
Int main ()
{
Int a, b;
cin> A. & gt;> b;
For (int I=1; I & lt;=a; I++)
{
If (I & gt; B& & I & lt;=a - b)
{
For (int j=0; J & lt; (b - 1)/2; J++)
{
cout <& lt; "";
}
cout <& lt; "*";
}
The else
{
For (int j=0; J & lt; b; J++)
{
cout <& lt; "*";
}
}
cout <& lt; Endl;
}
return 0;
}
  • Related