* *
* * * *
* * * * * *
* * * * * * * *
* * * * * *
* * * *
* *
#include<iostream>
using namespace std;
int main(){
for(int i=0;i<8;i++)
{
for(int j=0;j<8;j++)
{
if(i<5)
if(i>j || i+j>7)
cout<<"* ";
else
cout<<" ";
else
{
if(i+j<8 || i<j+1)
cout<<"* ";
else
cout<<" ";
}
}
cout<<endl;
}
return 0;
}
Comments
Post a Comment