#include <iostream>
#include <conio.h>
using namespace std;
int counter=1;
int m=1;
int n,j,o;
int main()
{
for (n=9;n>=1;n--)
{
for (j=5;j>=counter;j--)
{
cout<<"*";
}
if(counter>5)
{
for (o=0;o<=m;o++)
{
cout<<"*";
}
m++;
}
counter++;
cout<<endl;
}
getch();
}
my problem is, i need to enter number to get that output, example enter no: 5 it will give me that output, please help me! thanks