Display the Following Pattern * ** *** **** ***** C Program

How to write a C Program to Display the Following Pattern 

** 

*** 

**** 

***** 

in C Programming Language ?



Solution:
/* Program to display the following pattern:
*
**
***
****
*****
*/
#include<stdio.h>
#include<conio.h>

void main()
{
int i, j;

clrscr();

for(i = 0; i<4; i++) {
for(j = 0; j <= i; j++)
printf("*");
printf("\n");
}

getch();
}



Learn More :