Created
November 21, 2021 13:50
-
-
Save goish135/332e1fa7bd3fd0b4f7622d7a35c789cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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