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