/* Program to
print the pattern */
#include<stdio.h>
#include<conio.h>
void
main()
{
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
OUTPUT
1
12
123
1234
12345
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.