Write a program for show that following below.
*
* *
* * *
* * * *
* * * * *
Program:
#include<stdio.h>
main()
{
int n, i, j;
printf("How many step =");
scanf("%d", &n);
for(i=1; i<=n; i++)
{
printf("\n");
for(j=0; j<=i; j++)
printf("*");
}
}
*
* *
* * *
* * * *
* * * * *
Program:
#include<stdio.h>
main()
{
int n, i, j;
printf("How many step =");
scanf("%d", &n);
for(i=1; i<=n; i++)
{
printf("\n");
for(j=0; j<=i; j++)
printf("*");
}
}