Search C Program

Loading...

Number Pattern - 53

1
232
34543
4567654
567898765

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


Related Links:
- More Number Pattern Programs
- Star Pattern Programs in C
- Alphabet Pattern Programs in C
- Series Programs in C


No comments:

Post a Comment