it is the pattern and numbers problem
here is my code:
#include
#include<math.h>
using namespace std;
int main() {
int n;
cin>>n;
for(int i=1;i<=5;i++)
{
int k=1;
for(int j=i;j<=5;j++){
cout<<k++<<" ";
}
int lk=0;
while(lk != 2 * i-1)
{
cout<<"* ";
++lk;
}
cout<<endl;
}
}
