/*PROGRAM TO PRINT A STAR SEQUENCE 3*/
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,k,temp;
clrscr();
printf(“Press any key to display the sequence of stars: \n”);
getch();
temp=1;
for(i=1;i<=3;i++)
{
for(j=3-i;j>=1;j–)
printf(” “);
for(k=1;k<=temp;k++)
printf(“*”);
temp=temp+2;
printf(“\n”);
}
getch();
}