Was bored so decided to have a go at it, hope this helps and i am certain there is an easier way to do this however thats up to you
cpp
/* ===== Program To Print Pattern ====== */
/* Pattern
******`````````*
`*****````````**
``****```````***
```***``````****
````**`````*****
`````*````******
*/
#include<iostream>
using namespace std;
void printPattern()
{
char charArray[] = {'*','*','*','*','*','*','`','`','`','`','`','`','`','`','`','*'};
//variables
int counter = 0;
char temp;
int value1 = 0, value2 = 14;
while (counter < 6)
{
//print out the array
for(int k = 0; k < 17; k++)
cout << charArray[k];
cout << endl; //newline
//manipulate the array
temp = charArray[value1]; // *
charArray[value1] = charArray[value2];
charArray[value2] = temp;
value1++; value2--;
counter++;
}
}
int main()
{
cout << "Patter Printer v1\n=======================" << endl;
printPattern();
return 0;
}
Hope this helps a bit.