Search C Program

Number Pattern - 1

1
12
123
1234
12345


#include <stdio.h>

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

4 comments:

  1. want mirror image of that pattern

    ReplyDelete
  2. please write code for this using while loop

    ReplyDelete
  3. we want these coding by while and do while

    ReplyDelete
  4. if it is in pyramid shape
    then the code will be...???

    ReplyDelete