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 tc = 0; tc < t; tc++)
- #define PF printf
- #define SF scanf
- #define EP 0.000000001
- using namespace std;
- int main()
- {
- //DEBUGG
- int n;
- TESTCASE
- {
- cin >> n;
- int temp = 1;
- for(int i = n; i > 0; i--)
- {
- for(int j = 1; j < i; j++) cout << ' ';
- for(int j = 0; j < temp; j++) cout << '*';
- cout << endl;
- temp += 2;
- }
- if(tc != t-1)
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement