Program to print Sequential Stars

#include<stdio.h>
#include<conio.h>
void main()
{
int term,i,j;
clrscr();
printf("\nEnter Term");
scanf("%d",&term);
  for(i=1;i<=term;i++)
  {
  for(j=1;j<=i;j++)
  {
  printf("*");
  }
  printf("\n");
  }
getch();
}

Leave a Reply