Vision and dreams are the blueprints of soul and achievements.
-Mohammed Ahmed F

Pattern

#include<stdio.h>
#include<conio.h>
int main()
{
int row,col,n;
clrscr();
printf("Enter For How Many Lines Pattern is to be printed\n");
scanf("%d",&n);
for(row=1;row<=n;++row)
{
for(col=1;col<=row;++col)
{
printf("*");
}
printf("\n");
}
getch();
return 0;
}

Output:

Enter For How Many Lines Pattern is to be printed
5
*
**
***
****
*****

Share this

Related Posts

Dear User,

Thank you for your comment. Hope you like this blog. Kindly share us on Social Media so others can be updated.

-Chief Administrative Officer.

Note: only a member of this blog may post a comment.