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