hi, every body i want to know the logic that how to get output in C, of stars like * ** *** **** ***** ****** using while loop thanks for help me.
Rohit Phulsunge says- Code: #include<stdio.h> #include<conio.h> void main() { clrscr(); int i=1,j=0,k; while(i!=6) {j=1; while(j!=i) { printf("*"); j++; } i++; printf("\n"); } getch(); } //End of Program code.