-->

Facebook

Jasper Roberts - Blog

Monday, October 13, 2014

Write a C Program to draw following patter -1

/*
     *
     **
     ***
     ****
     *****

*/


#include<conio.h>
#include<stdio.h>

void main()
{
     int i,j;
     clrscr();
    
     for(i=1;i<=5;i++)
     {
          for(j=1;j<=5;j++);
          {

              printf(“*”);
          }
          printf(“\n”);
     }
     getch();
}




OUTPUT:
*
**
***
****
*****

No comments:

Post a Comment