Number Pattern 8 in C



#include<stdio.h>
#include<conio.h>

void main()
{
int i,j,k=1;
for(i=1;i<=5;i++)
{
for(j=k;j>=1;j--)
{
printf("%d",j);
}
k++;
printf("\n");
}
getch();
}



No comments:

Post a Comment