Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- #include <algorithm>
- #include <cmath>
- #include <string>
- #include <cstdlib>
- #define DEBUGG freopen("f:\\in.txt", "rt", stdin);freopen("f:\\out.txt", "wt", stdout);
- #define FOR(n) for(int i = 0; i < n; i++)
- #define ll long long int
- #define TESTCASE int t;scanf("%d", &t);for(int j = 0; j < t; j++)
- #define PF printf
- #define SF scanf
- #define EP 0.000000001
- using namespace std;
- int main()
- {
- int n;
- TESTCASE
- {
- cin >> n;
- FOR(n)
- {
- for(int k = 0; k < 9; k++) cout << '*';
- if(i != n-1) cout << ' ';
- }
- cout << endl;
- FOR(n)
- {
- cout << '*';
- for(int k = 0; k < 7; k++) cout << ' ';
- cout << '*';
- if(i != n-1) cout << ' ';
- }
- cout << endl;
- FOR(n)
- {
- cout << '*';
- for(int k = 0; k < 7; k++) cout << ' ';
- cout << '*';
- if(i != n-1) cout << ' ';
- }
- cout << endl;
- FOR(n)
- {
- for(int k = 0; k < 9; k++) cout << '*';
- if(i != n-1) cout << ' ';
- }
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement