Pattern 2

      No Comments on Pattern 2
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,x,y,z;
clrscr();
for(i=7;i>0;i--)
 {
  for(j=0;j<i;j++)
   {
    printf(" *");
   }
   for(x=0;x<7-i;x++)
    {
     printf("  ");
    }

      for(int l=0;l<7-i;l++)
      {
       printf("  ");
      }
      for(z=0;z<i;z++)
    {
     printf(" *");
    }

    printf("\n");
 }
	      getch();
}

OUTPUT:-

pattern

Leave a Reply

Your email address will not be published. Required fields are marked *