can anyone help me with this output:
^^^^^#^^^^^
^^^^###^^^^
^^^#####^^^
^^#######^^
^#########^
###########
i have done the following so far & am struggling to continue:
#include <iostream>
using namespace std;
//Function draw shape
void displayRow(int sizeP)
{
for(int i = 1; sizeP - i + 1; i++)
cout << '^';
//for (int j = 1; sizeP 2 * j - 1; j++)
//cout << '#';
}
int main()
{
displayRow(7);
return 0;
}