Advertisement
jordanov

pletka

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