Search C Program

Loading...

Number Pattern - 37

1
23
345
4567
56789
#include<stdio.h>

int main()
{
    int i,j,k;
    for(i=1;i<=5;i++)
    {
        j=i;
        for(k=1;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


1 comment:

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

    ReplyDelete