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