Advertisement
add1ctus

Плетка

Nov 2nd, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <cstdio>
  2.  
  3. int main()
  4. {
  5.     int i,j,n;
  6.     scanf("%d",&n);
  7.     for (i = 0; i < n; ++i)
  8.     {
  9.         for (j = 0 ; j < n ; ++j)
  10.         {
  11.             if(j == 0 || j == n-1)
  12.                 printf("%%");
  13.             else if(i == 0 || i == n-1)
  14.                 printf("@");
  15.             else
  16.                 printf(".");
  17.         }
  18.         printf("\n");
  19.     }
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement