Friday, August 23, 2019

Pyramid Star Pattern Revers in clangauge.

Pyramid Star Pattern Revers in clangauge:


Pyramid Star Pattern Revers in clangauge:


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

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

void main()
{
int i,j,k;
clrscr();
for(i=5;i>=1;i--)
{
for(j=5;j>=i;j--)
{
printf(" ");
}
for(k=1;k<=i;k++)
{
printf("* ");
}
printf("\n");
}
getch();


}


EmoticonEmoticon