Search C Program

Loading...

Number Pattern - 36

1
212
32123
4321234

#include<stdio.h>

int main()
{
  int i,j;
  for(i=1;i<=4;i++)
  {
    for(j=i;j>1;j--)
      printf("%d",j);
    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


1 comment:

  1. #include
    void main()
    {
    int i,j;
    for(i=1;i<=4;i++)
    {
    for(j=i;j>=1;j--)
    {
    printf("%d",j);
    }
    for(j=2;j<=i;j++)
    {
    printf("%d",j);
    }
    printf("\n");
    }
    ]

    ReplyDelete