C program to print star pattern 1

C Program to print star pattern 1



* * * * *
* * * * *
* * * * *
* * * * *
* * * * *

#include<stdio.h>

int main()

{

  printf("The star pattern is:\n");

  int i,j,k;

  for(i=0;i<5;i++)

  {

     printf("\n");

     for(j=0;j<5;j++)

      {

    printf("* ");

          }
   }
}

Output:






Comments