Christmas tree πŸŽ„πŸŽ„

CΒ±+
Christmas tree πŸŽ„πŸŽ„

// If you liked it don’t forget to give

// a (+1) like.

// Thank you all!

// By @ Akash..

#include <iostream>

#define N 15

using namespace std;

int main()

{

int i, j, k, l;

int cntr = 3, tree_base;

for(i = 1; i <= cntr; i++)

{

for(k = N-1; k >= i; k–)

{

cout << ‘ ‘;

}

for(j = 1; j <= 2*i – 1; j++)

{

cout << ‘*’;

}

cout << endl;

}

cntr++;

for(i = 1; i <= cntr; i++)

{

for(k = N-2; k >= i; k–)

{

cout << ‘ ‘;

}

for(j = 0; j <= 2*i; j++)

{

cout << ‘*’;

}

cout << endl;

}

cntr++;

for(i = 1; i <= cntr; i++)

{

for(k = N-3; k >= i; k–)

{

cout << ‘ ‘;

}

for(j = 0; j <= 2*i+2; j++)

{

cout << ‘*’;

}

cout << endl;

}

cntr++;

for(i = 1; i <= cntr; i++)

{

for(k = N-4; k >= i; k–)

{

cout << ‘ ‘;

}

for(j = 0; j <= 2*i+4; j++){

cout << ‘*’;

}

cout << endl;

}

tree_base = 2 * i + 4;

for(l = 0; l < 3; l++)

{

for(j = N-3; j > 0; j–)

{

cout << ‘ ‘;

}

for(j = 0; j <= 4; j++)

{

cout << ‘*’;

}

cout << endl;

}

cout << endl;

for(i = 0; i < N-9; i++)

{

cout << ‘ ‘;

}

cout << “Merry Christmas!!!” << endl;

cout << “\n If you liked it, don’t forget\n to give a like! Thank you!” << endl;

return 0;

}

Topics Covered :

β€’C++ programing

β€’c++ programming beginners

β€’Christmas tree πŸŽ„

β€’c programming for beginners

 

 

 

 

 

 

 

 

 

 

Thanks for reading this blog. Hope you get satisfied with the blog and definitely this blog must have valued your time and effort of reading.

 

Take a time to connect our other digital creations such as Instagram , Facebook and Youtube.

 

 

 

πŸ§‘β€πŸ’»πŸ§‘β€πŸ’» Social Media Links of Tech DCode :

 

πŸ‘‰πŸ» YouTube : https://www.youtube.com/channel/UCjJnEdeugftBwQ3yMuD4B_A

πŸ‘‰πŸ» Instagram : https://www.instagram.com/thetechdcode/

πŸ‘‰πŸ» Facebook Page : https://www.facebook.com/thetechdcode

πŸ‘‰πŸ» Twitter : https://twitter.com/thetechdcode

πŸ‘‰πŸ» Telegram Channel : https://t.me/thetechdcode

πŸ‘‰πŸ» Tech DCode Linktree : https://linktr.ee/thetechdcode

πŸ‘‰πŸ» My Personal Handles : https://linktr.ee/virtualshivamin

 

πŸ§‘β€πŸ’»πŸ§‘β€πŸ’» Social Media Links of SHIVAM SINGH (OWNER) :

 

πŸ‘‰πŸ» Instagram : https://www.instagram.com/virtualshivamin/

πŸ‘‰πŸ» Facebook Page : https://www.facebook.com/virtualshivamin/

πŸ‘‰πŸ» Twitter : https://twitter.com/virtualshivamin/

πŸ‘‰πŸ» Personal Linktree : https://linktr.ee/virtualshivamin

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *