Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. int choinka(int n)
  2. {
  3. for(int k=0;k<2;k++){
  4. for(int i=k;i<n;i++){
  5. for(int z=0;z<n-i;z++){
  6. cout << " ";
  7. }
  8. for(int j=0;j<=2*i;j++){
  9. cout <<"*";
  10. }
  11. cout <<endl;
  12. }
  13. }
  14. for(int i=0;i<n-1;i++){
  15. for(int z=0;z<n-1;z++){
  16. cout << " ";
  17. }
  18. for(int j=0;j<3;j++){
  19. cout << "*";
  20. }
  21. cout << endl;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement