Star Pattern 8

Star Pyramid triangle Pattern Program in C


#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int size=5;
int i,j;
clrscr();
for(i=size;i>=-size;i--)
{
for(j=size;j>=abs(i);j--)
{
printf("*");
}
printf("\n");
}
getch();
}

No comments:

Post a Comment