program:
#include<stdio.h>
int main()
{
int i,j;
for(i=0;i<5;i++){
for(j=0;j<=i ;i++)
printf("*");
}
printf("n");
output:
*
**
***
****
*****