#include<iostream>
#include<conio.h>
usingnamespace std;
int main()
{
int rows, cols, numOfAster;
cout << "Enter the level of of the asterisks:";
cin >> numOfAster;
cout << "Press any key to see the array:\n";
getch();
for (rows=0; rows < numOfAster; rows++)
{
for (cols=0; cols < rows + 1; cols++) cout << "*";
cout << endl;
}
getch();
return 0;
}