ProAnswers.org

C program to print below pattern

**




#include

int main()
{
int n, c, k;

printf("Enter number of rows

“);
scanf(”%d",&n);

for ( c = 1 ; c <= n ; c++ )
{
    for( k = 1 ; k <= c ; k++ )
        printf("*");

    printf("

");
}

return 0;

}