Here is an approach :
int cur=1,num=1;
for(int i=0;i<4;i++)
{
for(int j=0;j<cur;j++)
{
if(j!=0)
printf("*");
printf("%d",num++);
}
printf("\n");
cur++;
}
cur=4,num=10;
for(int i=0;i<4;i++)
{
int temp=num-cur+1;
for(int j=0;j<cur;j++)
{
if(j!=0)
printf("*");
printf("%d",temp++);
}
printf("\n");
num-=cur;
cur--;
}
solved How do print the following pattern in C/C++?