CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// If you liked it don't forget to give
// a (+1) like.
// Thank you all!
// By @ Michael Xanthopoulos
#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;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run