Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int choinka(int n)
- {
- for(int i=0;i<n;i++){
- for(int z=0;z<n-i;z++){
- cout << " ";
- }
- for(int j=0;j<=2*i;j++){
- cout <<"*";
- }
- cout <<endl;
- }
- for(int i=1;i<n;i++){
- for(int z=0;z<n-i;z++){
- cout << " ";
- }
- for(int j=0;j<=2*i;j++){
- cout <<"*";
- }
- cout <<endl;
- }
- for(int i=0;i<n-1;i++){
- for(int z=0;z<n-1;z++){
- cout << " ";
- }
- for(int j=0;j<3;j++){
- cout << "*";
- }
- cout << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement