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