C Program to print stars Sequence Post author:Educate Post published:August 1, 2023 Post category:C and C++ Post comments:0 Comments #include #include void main() { int i,j; clrscr(); for(i=1;i<=5;i++) { for(j=1;j<=i;j++) printf(“*”); printf(“\n”); } getch(); } Output:* ** *** **** ***** You Might Also Like OpenGL program to Implement Bresenham’s line drawing algorithm for all types of slope August 4, 2023 C program to use (++) operator with return value of function August 3, 2023 C program to find factorial of a number August 1, 2023 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.