Skip to content

Instantly share code, notes, and snippets.

@goish135
Created November 21, 2021 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goish135/332e1fa7bd3fd0b4f7622d7a35c789cb to your computer and use it in GitHub Desktop.
Save goish135/332e1fa7bd3fd0b4f7622d7a35c789cb to your computer and use it in GitHub Desktop.
#include<iostream>
using namespace std;
int main()
{
for(int i=1;i<=7;i++)
{
for(int j=1;j<=7;j++)
{
if(!(i>=3&&i<=5)&&!(j>=3&&j<=5)&&!((i==1||i==7)&&(j==1||j==7)))
{
cout<<"-";
}
else
{
cout<<"*";
}
}
cout<<endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment