Star Pattern Program in C - 5


pattern programs in c


/*
Write a program in C for Star Pattern
*/

#include <stdio.h>

int main()
{
    int i, j;
    for(i=1;i<=5;i++)
    {
        for(j=1;j<=i;j++)
        {
            printf("*");
        }
        printf("\n");
    }

    return 0;
}

Post a Comment

0 Comments