// 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