Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int w,k;
- int t;
- cin>>t;
- for(int i=0; i<t; i++)
- {
- cin>>w;
- cin>>k;
- cout<<endl;
- int z=0;
- for(int i=0; i<w; i++)
- {
- if(z==0)
- {
- cout<<"****";
- z=1;
- }
- for(int n=1; n<k; n++)
- {
- if(i==0)
- {
- cout<<"***";
- }
- }
- cout<<endl;
- for(int q=0; q<k; q++)
- {
- if(q==0)
- {
- cout<<"*..*";
- }
- else
- cout<<"..*";
- }
- cout<<endl;
- for(int r=0; r<k; r++)
- {
- if(r==0)
- {
- cout<<"*..*";
- }
- else
- cout<<"..*";
- }
- cout<<endl;
- for(int w=0; w<k; w++)
- {
- if(w==0)
- {
- cout<<"****";
- }
- else
- cout<<"***";
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement