Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a;
- int e;
- int c;
- int z;
- int q;
- e=2;
- a=0;
- z=0;
- cout << "wwedi chislo:";
- cin >> c;
- q=c;
- while (z<c)
- {
- a=1;
- while (a<q)
- {
- cout << " ";
- a=a+1;
- }
- q=q-1;
- a=1;
- while (a<e)
- {
- cout << "*";
- a=a+1;
- }
- e=e+2;
- cout << endl;
- z=z+1;
- a=1;
- }
- while (a<c)
- {
- cout << " ";
- a=a+1;
- }
- cout << "*";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement