Program to print Sequential Stars.

#include<stdio.h>
#include<conio.h>
void main()
{
   int i=1,j=1,term;
   clrscr();
   printf("\nENTER TERM=>");
   scanf("\n %d",&term);


   while(i<=term)
   {
     while(j<=term)
     {
    printf(" *");
   j++;
     }
    printf("\n");
    i++;
   }
getch();
}

Leave a Reply