C program to print the given star pattern. *
**
***
****
*****
C Programming Language Loop control in C Language (Article) Loop control in C Language (Program)
2395Program:
#include "stdio.h" int main() { int i=1,j; do { j=1; do { printf("*"); j++; }while(j <= i); i++; printf("\n"); }while(i <= 5); return 0; }
Output:
* ** *** **** ***** Press any key to continue . . .
Explanation:
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.