Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void rysuj()
- {
- int x, i, j;
- for (i = 10; i >= 1; i--)
- {
- for (j = 10; j >= 1 - i; j--)
- {
- cout << "";
- }
- cout << "*";
- for (x = 1; x < i ; x++)
- {
- cout << " ";
- }
- cout << "*";
- cout << "\n";
- }
- for (i = 1; i <= 10; i++)
- {
- for (j = 1; j <= 10 - i; j++)
- {
- cout << " ";
- }
- cout << "*";
- for (x = 1; x < i ; x++)
- {
- cout << " ";
- }
- cout << "*";
- cout << "\n";
- }
- _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement