Wednesday, 30 September 2015

Program to print star Patterns

  
   
#include<stdio.h>
#include<conio.h>
void main()
{
inti,j;
clrscr();
for(i=1;i<=5;i++)
  {
 printf(“\n”);
 for(j=1;j<=i;j++)
   {
     printf(“*”);
          }
  }
getch();
} 

No comments:

Post a Comment