/* Program to print the following output
*
**
***
****
*****
*/
#include <stdio.h>
int main()
{
int i, j;
for(i=1; i<=5; i++)
{
//Used for printing spaces in decreasing order of row
for(j=i; j<5; j++)
{
printf(" ");
}
//Prints star in increasing order or row
for(j=1; j<=i; j++)
{
printf("*");
}
printf("\n");
}
return 0;
}