Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i, j, n, h;
- cout << "N=";
- cin >> n;
- for (i = 1; i<n; i++) {
- for (j = 1; j<n; j++)
- {
- if(i>=j)
- cout << "*";
- else
- cout <<" ";
- }
- cout <<endl;
- }
- for (i = 1; i<n; i++) {
- for (j = 1; j<n; j++)
- {
- if(i<=j)
- cout << "*";
- else
- cout <<" ";
- }
- cout <<endl;
- }
- cin >>n;
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement