#include<stdio.h>

main()
{
	int i,n,rows,space;
	printf("Enter rows");
	scanf("%d",&rows);
	
	for(i=1;i<=rows;i++)
	{
		for(space=1;space<=rows-i;space++)
		{
			printf(" ");
		}
		for(n=1;n<=2*i-1;n++)
		{
			printf("*");
		}printf("\n");
	} 
}
     
           
Note: Need to be arranged in compiler after copied
   

 OutPut:

Enter rows10 * *** ***** ******* ********* *********** ************* *************** ***************** *******************