Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using std::cout;
- using std::cin;
- using std::endl;
- void main()
- {
- setlocale(LC_ALL, "Russian");
- /*
- *
- * *
- * * *
- * * * *
- * * * * *
- for (int i = 5; i >= 0; i--)
- {
- for (int j = 0; j <= 5; j++)
- {
- if (j <= i) cout << " "; else cout << "*";
- if (j > i) cout << " ";
- }
- cout << endl;
- }
- */
- /*
- * * * * *
- * * * *
- * * *
- * *
- *
- for (int i = 0; i <= 4; i++)
- {
- for (int j = 0; j <= 5; j++)
- {
- if (j <= i) cout << " "; else cout << "*";
- if (j > i) cout << " ";
- }
- cout << endl;
- }
- */
- /*
- *
- *
- *
- *
- *
- int size, k = 0;
- cout << "Введите размер: "; cin >> size;
- for (int i = 0; i <= size; i++)
- {
- for (int j = 0; j <= k; j++)
- {
- if (j < k) cout << " "; else cout << "*";
- }
- if (i < (size / 2)) k++; else k--;
- cout << endl;
- }
- */
- /*
- *
- * *
- * * *
- * *
- *
- int size, k = 0;
- cout << "Введите размер: "; cin >> size;
- for (int i = 0; i <= size; i++)
- {
- for (int j = 0; j <= k; j++)
- {
- if (k < j) cout << "#"; else cout << "*";
- }
- if (i < (size / 2)) k++; else k--;
- cout << endl;
- }
- */
- /*
- * * * * *
- * * * *
- * * *
- * *
- *
- for (int i = 5; i > 0; i--)
- {
- for (int j = 0; j < i; j++)
- cout << '*' << " ";
- cout << endl;
- }
- */
- /*
- * * * * *
- * * * *
- * * *
- * *
- *
- for (int i = 0; i < 5; i++)
- {
- for (int j = 0; j < 5; j++)
- {
- if (j < i) cout << " "; else cout << "*";
- cout << " ";
- }
- cout << endl;
- }
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement