#include<iostream>
using namespace std;
int main()
{
int arr[5][9] = {{0,0,0,0,1},
{0,0,0,1,1,1},
{0,0,1,1,1,1,1},
{0,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1}};
for(int i = 0; i < 5; i++)
{
for(int j = 0; j < 9; j++)
{
if(arr[i][j] != 0)
cout <<"*";
else
cout <<" ";
}
cout << endl;
}
return 0;
} |