Advertisement
damch

pletka

Nov 20th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int n,i,j;
  7. scanf("%d",&n);
  8. for(j=0;j<n;j++)
  9. {
  10.  
  11. for(i=0;i<n;i++)
  12. {
  13. if(j>=0&&j<=n-1)
  14. {
  15. if(i==0 || i==n-1)
  16. {
  17. printf("%%");
  18. if(i==n-1)
  19. printf("\n");
  20.  
  21. }
  22. else if(i>=1&&i<=n-2)
  23. {
  24. if(j==0||j==n-1)
  25. printf("@");
  26. else printf(".");
  27. }
  28.  
  29. }
  30. }
  31.  
  32.  
  33.  
  34.  
  35. }
  36.  
  37. return 0;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement