Start Display

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("*");
}
}

Loading
Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Flying Twitter Bird Widget By ICT Sparkle