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
#include <iostream>
using namespace std;
char sym[] = {'#','$'};
void shape_a()
{
for(int i = 1; i <= 6; i++)
{
cout << endl;
int s = i;
int t = 6-i;
while(s > 0)
{
cout << sym[1];
s--;
}
while(t > 0)
{
cout << sym[0];
t--;
}
}
}
void shape_b()
{
for(int i = 0; i < 6; i++)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run