#include<stdio.h>
main()
{
int n=14, c, k, temp;
temp = n;
for ( c = 0 ; c <= 4 ; c++ )
{
for( k = 2 ; k <= temp ; k++ )
printf("*");
if(k<=13)
{
temp=temp-3;
}
else
{
temp=temp-2;
}
printf("\t\t%d",k-2);
printf("\n");
}
return 0;
}
solved Printing a star (*) pattern with different decreasing number [closed]