Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- int max,br1,br2;
- scanf("%d",&max);
- for(br1=0;br1<max;br1++)
- {
- for(br2=0;br2<max;br2++)
- {
- if(br1==0||br1==max-1)
- {
- printf("+");
- continue;}
- if(br2==0||br2==max-1)
- {
- printf("+");
- continue;}
- printf("-");
- }
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement