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