Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int i,j,n,m;
- cin>>m>>n;
- for(i=0;i<n;i++)
- {
- for(j=0;j<m;j++)
- {
- if(i==0||i==(n-1)||j==0||j==(m-1))
- cout<<'x';
- else
- cout<<'#';
- }
- cout<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement