Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- {
- int a;
- cout << "Vvedite razmer yolki:";
- cin >> a;
- int c=0;
- int b=0;
- while (c<a)
- {
- while (a>b+c)
- {
- cout << " ";
- b++;
- }
- b=-2;
- while (b<c*2-1)
- {
- cout << "*";
- b++;
- }
- cout << endl;
- b=0;
- c++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement