Friday, August 23, 2019

Star pattern 16 Revers

Star pattern Revers 16:


star pattern in cprograms.



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


#include<stdio.h>
#include<conio.h>

void main()
{
int i,j,l,m;
clrscr();
l=5;
m=5;

for(i=1;i<=5;i++)
{
for(j=1;j<5*2;j++)
{
if(j>l && j<m)
{
printf(" ");
}
else
{
printf("*");
}
}
l--;
m++;
printf("\n");

}
getch();
}


EmoticonEmoticon