C program to printPattern 10

#include <stdio.h>
#include <stdlib.h>

int main()
{

   int i,j,n;
   printf("Enter number of row : ");
   scanf("%d",&n);
   for(i=1;i<=n;i++)
   {
       for(j=1;j<=i;j++)
       {

           printf("* ");
       }

       printf("\n");
   }
}

Output:
Patterns Programs

Subscribe For Daily Updates