Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int Zapros(int &a){
- cout << "Vvedite rasmer elochki:";
- cin >> a;
- }
- void Budivelnik(int b,int f){
- int c = 0;
- int g = b;
- int e = 1;
- c = e;
- while(b > f)
- {
- while(g > 0)
- {
- cout << " ";
- g--;
- }
- c = e;
- while(c > 0)
- {
- cout << "*";
- c--;
- }
- e = e + 2;
- f++;
- g = b - f;
- cout << endl;
- }
- f = 0;
- while(b > f)
- {
- cout << " ";
- f++;
- }
- cout << "*";
- }
- int main()
- {
- int index = 0,kolichestvo = 0;
- Zapros(kolichestvo);
- Budivelnik(kolichestvo,index);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement