Advertisement
Alweys

Untitled

Mar 9th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int i,j,n,m;
  8. cin>>m>>n;
  9. for(i=0;i<n;i++)
  10. {
  11. for(j=0;j<m;j++)
  12. {
  13. if(i==0||i==(n-1)||j==0||j==(m-1))
  14. cout<<'x';
  15. else
  16. cout<<'#';
  17. }
  18. cout<<endl;
  19. }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement